Elliott C. Back: Internet & Technology

A little MOD_REWRITE fun

Posted in Mod_Rewrite by Elliott Back on January 20th, 2005.

Due to the resurrection of my GLAT post, I wrote a redirect to send visitors looking for the old one over to the new one. You can just add the following mod_rewrite rules to your .htaccess:

# For the GLAT post
RewriteCond %{QUERY_STRING} postid=106
RewriteRule ^(.*)$ elliottback.com/?blah…) until I realized it was in the QUERY_STRING variable…

This entry was posted on Thursday, January 20th, 2005 at 12:43 am and is tagged with mod rewrite, rewriterule, query string, question mark, resurrection, htaccess, blah. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

Leave a Reply

Powered by WP Hashcash