I'm using htaccess (or trying to at least) to rewrite a call to my root domain to a script I am using to generate my site. IE: RewriteEngine on RewriteRule ^(.*)$ /cgi-bin/script.cgi/$1
I'm sure you htaccess gurus can already see the problem. All my image links are rewritten as well to domain.com/cgi-bin/script.cgi/images/image.gif and so on. Can this be avoided just for the images folder?
jdMorgan
8:04 pm on Apr 3, 2003 (gmt 0)
oilman,
Add a rewrite condition to exclude the images directory requests:
RewriteEngine on RewriteCond %{REQUEST_URI} !^/images RewriteRule ^(.*)$ /cgi-bin/script.cgi/$1 [L]
Jim
oilman
8:10 pm on Apr 3, 2003 (gmt 0)
jeez - I knew it would be something simple - works like a charm :) Thanks Jim. I really should learn more about htacces one of these days.