[ic] Getting rid of /cgi-bin/scriptname

Howard Lowndes interchange-users@icdevgroup.org
Fri Mar 21 00:14:00 2003


On Thu, 20 Mar 2003, Jay Sun wrote:

> 
> 
> A lot simpler way of doing this is to use mod_interchange. 

The simplest way is in httpd.conf put:

RedirectMatch permanent ^/$ http://your.domain.com/cgi-bin/yourshop/

> 
> J. Sun
> http://suniant.com/
>  
> --
> 
> On Sat, 15 Mar 2003 12:14:14  
>  Frederic Steinfels wrote:
> >For those who are interested in removing /cgi-bin/catalogname from the url string, this is the solution:
> >
> >In your apache configuration file, insert the following lines for your virtualsever and secure virtualserver:
> >
> >
> >RewriteEngine   on
> >
> >RewriteRule     ^$      /cgi-bin/shop/  [L,NS,PT]
> >RewriteRule     ^/$      /cgi-bin/shop/  [L,NS,PT]
> >RewriteRule     ^/index\.html$      /cgi-bin/shop/  [L,NS,PT]
> >
> >RewriteCond     /home/shop/www/html/%{REQUEST_FILENAME} -f      [OR]
> >RewriteCond     /home/shop/www/html/%{REQUEST_FILENAME} -d
> >RewriteRule     ^(.+)$  -  [L,NS]
> >
> >RewriteCond     /%{REQUEST_FILENAME}    !^.*/cgi-bin/shop.*$
> >RewriteRule     ^(.+)$  /cgi-bin/shop/$1  [L,NS,PT]
> >
> >
> >
> >Replace 'cgi-bin' with your cgi-bin directory, probably no substitution necessary.
> >Replace 'shop' with your catalog name.
> >Raplece '/home/shop/www/html' with your html directory.
> >
> >Make sure you do not have conflicting file names or directory names in your catalog and your html directory.
> >This patch might break other web pages or scripts on your server; some fine tuning might be necessary.
> >It should work staight away if you are running just interchange with only one catalog.
> >
> >After doing this, try to access your interchange pages by omitting 'cgi-bin/catalogname/'. If it works, do this:
> >Edit in your catalog directory the file products/variable.txt. Search for the line 'CGIURL'. Delete the string,
> >'/cgi-bin/catalogname'. Do not remove any tabulators.
> >Restart Interchange.
> >Open a new browser, make sure you will get a new session id and check wheter all links are ok.
> >
> >Frederic
> >
> >
> >_______________________________________________
> >interchange-users mailing list
> >interchange-users@icdevgroup.org
> >http://www.icdevgroup.org/mailman/listinfo/interchange-users
> >
> 
> 
> _____________________________________________________________
> Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
> 

-- 
Howard.
LANNet Computing Associates - Your Linux people <http://www.lannetlinux.com>
------------------------------------------
Flatter government, not fatter government - Get rid of the Australian states.
------------------------------------------
There are 10 types of people in the world, those who understand binary, 
and those who don't.