[ic] IC mod rewrite question.

Daniel Davenport DDavenport at newagedigital.com
Mon Nov 27 12:36:07 EST 2006


> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org 
> [mailto:interchange-users-bounces at icdevgroup.org] On Behalf 
> Of Sales Dept
> Sent: 2006 November 25 -- Saturday 9:48 PM
> To: interchange-users at icdevgroup.org
> Subject: [ic] IC mod rewrite question.
> Running IC 5.3 and Apache2
> I have the following in my httpd.conf file.
>  RewriteRule ^/(.*) /cgi-bin/catalog/$1 [PT,L]

This line matches just about anything, and will catch all the urls that
haven't been caught yet...even the ones that you're trying to catch
below.  I'm surprised that the data.default urls are the only ones you
have problems with.

I'd suggest moving the ^/(.*)$ rule to the end of the list.

>  RewriteRule ^/robots\.txt$   -       [PT,L]
>  RewriteRule ^/.*\.css$   -       [PT,L]
>  RewriteRule ^/.*\.js$   -       [PT,L]
>  RewriteRule ^/.*favicon\.ico$   /favicon.ico       [PT,L]
>  RewriteRule ^/data.default/.* -  [PT,L]
> </VirtualHost>

Daniel Davenport
New Age Digital

More information about the interchange-users mailing list