[ic] Using mod_rewrite AND mod_interchange
Kevin Walsh
kevin at cursor.biz
Wed May 12 18:06:43 EDT 2004
Bryan D Gmyrek [gmyrek at U.Arizona.EDU] wrote:
> 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.
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.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list