Hi,
Is it possible to rewrite the comment link
comment.php?serendipity[entry_id]=1&serendipity[type]=comments
to
comment/1/comments
or to change the link to
comment.php?entry_id=1&type=comments ?
Rewrite Comment link
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Rewrite Comment link
You could use a mod_Rewrite rewrite rule for that:
You could also patch Serendipity to make that link configurable, but IMHO that isn't worth the effort. Rewrite Rules are nice to an extent, but since I also do not recommend the use of popup URLs (where this would happen) and instead prefer seing comments in the entry view (where a pretty URL is applied), I think this functionality would be not so terribly important for the broader public.
If you do prepare some kind of patch, we can gladly include it in the distribution! Serendipity 0.9 offers a flexible permalink structure, which is also expensible in PHP-scope to allow what you'd want. But I must say that PHP-skills and some s9y-framework insight is necessary...
Bottom line: if you have mod_Rewrite, the solution above is very preferable for you.
Regards,
Garvin
Code: Select all
RewriteRule comment/([0-9]+) comment.php?serendipity[entry_id]=$1&type=comments [L,QSA]
If you do prepare some kind of patch, we can gladly include it in the distribution! Serendipity 0.9 offers a flexible permalink structure, which is also expensible in PHP-scope to allow what you'd want. But I must say that PHP-skills and some s9y-framework insight is necessary...
Bottom line: if you have mod_Rewrite, the solution above is very preferable for you.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/