Sunday, July 13, 2008
Funny Rookie Initiations
sometimes worth the effort to find some 'time to carefully examine the log files, you can discover what is really interesting and I think to please share in the the findings, if someone were then to have the same problem.
If you have a store and Zen Cart SEO URL module installed you can sometimes see in the Apache error log this error:
[warn] RewriteCond: nocase option for non-regex pattern '-f' is not supported and will be ignored.
What is the solution?
Very simple! You will need to edit the file . htaccess and replace the line:
RewriteCond% {REQUEST_FILENAME}!-F [NC]
with
RewriteCond% {REQUEST_FILENAME}!-F
So before the amendments the code was:
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
Dopo le modifiche si avrà :
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
Subscribe to:
Posts (Atom)