Thursday 31 August 2006 2:47:17 am
Hi Claudia/Marcin,
I just can't get it to work!
I've tried adding the following below ' RewriteEngine On' in my vhost.conf file: RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/noni_horses/robots\.txt|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf)$ /index.php
I also tried RewriteRule !(^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/robots\.txt|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf)$ /index.php
and also
RewriteRule ^/robots.txt - [L]
and RewriteRule ^/noni_horses/robots.txt - [L] I also tried changing AllowOverride None to AllowOverride All for the virtual host and tried putting the same in the .htaccess file, with no joy.
I also tried adding:<FilesMatch "(index\.php|robots\.txt|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all </FilesMatch>
with no difference
and also
<FilesMatch "(index\.php|\noni_horses\robots\.txt|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all </FilesMatch> I know I'm probably just being stupid and not understanding how the rewrites work here, but I really can't work out where I'm going wrong...
Incidentally, I notice that there doesn't seem to be a valid robots.txt on ez.no! (at least trying to access ez.no/robots.txt gets a kernel 20 error, same as I'm getting....)
|