University of Michigan Cellular and Molecular Biology graduate student

Mod_rewrite for MT comments, trackbacks

13 Aug 2003

I changed the URLs of my comments using mod_rewrite tonight. The benefit to using mod_rewrite is that my comment and trackback pages will now be indexed in search engines with greater relevance since the URLs now appear as individual pages rather than Perl generated content.

Comments

Trackback

See how much nicer the new URLs look? If you have mod_rewrite enabled, add this code to your .htaccess file:

RewriteEngine On
RewriteRule ^comments/([0-9]+) mt/mt-comments.cgi?entry_id=$1 [L]
RewriteRule ^trackback/([0-9]+) mt/mt-tb.cgi?__mode=view&entry_id=$1 [L]

4 comments

Matt (13 Aug 2003)

OH MY GOD!!! New little buttons for the hosted sites. WOOHOO!!!

Michael Steinbaugh (13 Aug 2003)

Heh, glad you enjoy them so much, Matt.

difikult tu saj (12 Apr 2004)

verry interesting!!!

asd (1 Jan 2007)

jkjgtjhgtrjjrhgjhtrj and more info D