[ic] Using mod_rewrite AND mod_interchange

Bryan D Gmyrek gmyrek at U.Arizona.EDU
Wed May 12 19:19:09 EDT 2004

> > what I want to do is have some
> > rewriterules so that /cgi-bin/mystore/ will redirect to / so that all
> > pages in the search engines will not be 'orphaned'.
> >
> Perhaps something like this will work for you:
>     RewriteEngine On
>     RewriteRule ^/*cgi-bin//*mystore//*(.*)$ /$1 [R=301]
> That should inform users and search engine spiders that they should be
> using "/" instead of "/cgi-bin/mystore/" from now on.  Ordinary users
> will be redirected to the new URI.

Kevin saves the day again :)  Thanks!

> Search engine spiders will take the redirect to be an indication that
> the old URI is no longer valid.  They will also make a note of the new
> URI for a future (usually immediate) visit.

Right on.  Better than a straight redirect as one then risks penalties for
having multiple copies of the same page with different names.


More information about the interchange-users mailing list