Re: Works on .htaccess but not in sites-available
Hello,
On 10/30/2012 10:02 PM, Jorge wrote:
> In /var/www/www.etxea.org/htdocs/.htaccess I've got the following
> content ...
[..]
> RewriteCond $1 !^(index\.php|images|robots\.txt|user_guide)
> RewriteRule ^(.*)$ /index.php/$1 [L]
[..]
> <VirtualHost *>
> RewriteCond $1 !^(index\.php|images|robots\.txt|user_guide)
> RewriteRule ^(.*)$ /index.php/$1 [L]
Matches in VirtualHost context start with /, i.e. you have to use
!^/(index\.php|images|robots\.txt|user_guide)
See
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule
(the box "What is matched?")
Cheers
Wolfgang
Reply to: