[ic] cgi-bin & script alias
Sam Batschelet
sam at westbranchresort.com
Tue Feb 23 15:15:38 UTC 2010
On 2/23/10 10:03 AM, Steve Graham wrote:
>>>
>>> Please try the following directive in your Apache configuration:
>>>
>>> RedirectMatch permanent ^/cgi-bin/site(.*)$ http://www.mysite.com/$1
>>
>> I think that will put a double slash after com. Try the following:
>> RedirectMatch permanent ^cgi-bin/site/(.*)$ http://www.mysite.com/$1
>>
>> ...or just...
>>
>> RedirectPermanent cgi-bin/site/ http://www.mysite.com/
>>
>>
>> Peter
>
> thanks everyone, it looks like:
>
> RedirectMatch permanent ^/cgi-bin/site(.*)$ http://www.mysite.com$1
>
> does the trick....
>
I think these are the similar or perhaps the same but this is what I use
to do a 301 (page moved permanently) which is understood by search engines.
decent article here about this
http://www.stevenhargrove.com/understanding-redirection/
RewriteRule ^/cgi-bin/site/*(.*)$ /$1 [NC,R=301]
Credit Ron Phipps
-Sam
More information about the interchange-users
mailing list