[ic] removing .../cgi-bin/catname/... from URLs

Peter peter at pajamian.dhs.org
Thu Dec 14 00:13:21 EST 2006


On 12/13/2006 05:49 PM, DB wrote:
>>> Now I've set up another machine and another store, but on this new one
>>>
>>> [page home]home</a>
>>>
>>> sends me to
>>>
>>> http://domain2.com/cgi-bin/catname/home.html
>>>
>>> I can't for the life of me remember how I got the simplified urls to be
>>> the default. I have the rewrite rules in place on the new store, but
>>> what's the magic I need to have IC use the simpler URLs by default? Can
>>> anyone jog my memory?
>> In your interchange.cfg Catalog definition, the last path prefix alias is 
>> the one that will be used for writing URLs. E.g.:
>>
>>    Catalog  mycat  /home/someuser/catalogs/mycat  /cgi-bin/mycat  /
>>
>> [area home] -> http://domain2.com/home.html
>>
>> Whereas:
>>
>>    Catalog  mycat  /home/someuser/catalogs/mycat  /  /cgi-bin/mycat
>>
>> [area home] -> http://domain2.com/cgi-bin/mycat/home.html
>>
>> Jon
> 
> 
> Hi - I've verified that Catalog definition indeed has the format:
> 
> Catalog  mycat  /home/someuser/catalogs/mycat  /cgi-bin/mycat  /
> 
> yet IC is still including the .../cgi-bin/mycat/... in the URLs. I
> restarted IC just for kicks yet still no luck. Can you suggest a way to
> troubleshoot?
> 
> I've noticed that the misbehaving store has a CGI_URL defined in the
> Prefernces tab of the Admin GUI, but the behaving store does not. Could
> this be the cause?

Indirectly, yes.  Look for VendURL and SecureURL in catalog.cfg.  Also see:
<http://www.interchange.rtfm.info/icdocs/config/VendURL.html>
<http://www.interchange.rtfm.info/icdocs/config/SecureURL.html>

Peter



More information about the interchange-users mailing list