[ic] cgi-bin & script alias

Peter peter at pajamian.dhs.org
Tue Feb 23 07:54:16 UTC 2010

On 23/02/10 20:30, Stefan Hornburg (Racke) wrote:
> Mr. Lock - Sales wrote:
>> Currently have a catalog using www.mysite.com/cgi-bin/site
>> as IC store directory.
>> I can make the root store directory www.mysite.com
>> but is there a way to keep both working, so the links in the search
>> engine still work.
>> ie.
>> www.mysite.com/cgi-bin/site/product1.html
>> and
>> www.mysite.com/product1.html
>> ?
> 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/


More information about the interchange-users mailing list