John Bokma MexIT
freelance Perl programmer

Comments: A permanent redirect using RedirectMatch

1 comment

Today Denise posted a question regarding using a permanent redirect from one part of her site on an Apache web server, to another part of her site for all files to the Usenet group

Read the rest of A permanent redirect using RedirectMatch.


I recently did something similar when considering a switch from WordPress to Drupal for my blog. Since my pages had all been indexed, I didn't want to "lose" the existing listings in the search engine.

My new site was "" and all the previous entries were under "". My needs were for to go to that site, but for hits to the main page (just /) to go to the new site.

Accomplished that with: [code] RedirectMatch ^/$ [/code]

mod_rewrite is awesome, once you figure it out. =)

Posted by Jeremy L. Gaddis at 02:44 GMT on 5 October 2006

Post a comment

Note that your comment doesn't show up immediately. I review each comment before I add it to this site.

Check the Follow this page option if you want to receive an email each time a comment is posted to this page, including yours. A link to turn this option off will be included with each email.

Internet adresses will be converted automatically. You can use the following notation to specify anchor text for a link: [url=]example text[/url].