[ic] Apache & Rewrite trouble

Bryan Gmyrek bryangmyrek at yahoo.com
Sun May 8 13:24:12 EDT 2005

Hi David,

Are you running your admin over https?
If so one option is to _not_ rewrite https and thus the admin should 
work fine.
Also have you tried mod_interchange?
It's possible to run your ic store in mod_interchange to have clean 
urls and not really need to use rewrites.
However I don't think it's compatible with apache 2.

Good luck,

On May 8, 2005, at 3:24 AM, David Bordas wrote:


I'm using IC (5.2.0) with quite succes for the moment.
URL : http://www.testadaz.com

Now, i'm trying to use mod_rewrite to have shorter urls.

I've found this :
and this :

But thoses exemples seem not to be fully working for me :(

The best result I can have is with this code :
RewriteEngine On
RewriteRule ^$  /cgi-bin/mic/index.html            [PT,L]
RewriteRule ^/$ /cgi-bin/mic/index.html            [PT,L]
RewriteRule ^/index\.html$ /cgi-bin/mic/index.html [PT,L]
RewriteRule ^/cgi-bin/mic/.* -                     [PT,L]
RewriteRule ^/.*images/.* -                        [PT,L]
RewriteRule ^/css/.* -                             [PT,L]
RewriteRule ^/interchange-5/.* -                   [PT,L]
RewriteRule ^/(.*) /cgi-bin/mic/$1                 [PT,L]

And modify variables.txt to change CGI_URL from "/cgi-bin/mic" to ""

This seems to work quite well for the store, but admin becomes quite 
buggy :(
Exemple :
Go to http://www.testadev.com/admin/customer.html
check a line and push "delete checked customers" and I will get :
The following error occurred:

    Not authorized for customer administration. Contact administrator?
    But if I remove rewrite rules, all is working fine.

Any idea ?
Perhaps should I use better rules ?

Thanks in advance.

interchange-users mailing list
interchange-users at icdevgroup.org

More information about the interchange-users mailing list