[opensuse] Re: apache mod_rewrite
Randall R Schulz wrote:
On Sunday May 3 2009, Duaine & Laura Hechler wrote:
...
This was in the .htaccess file I attached at 3:23 this afternoon - however I'll list it again:
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule ^(.*) "index.php" RewriteRule / http://example.com/
I'm not getting any thing from this - not even to example.com
Are you sure these directives are honored in .htaccess files? The documentation says that only things enabled via AllowOverride directive (in the or an Apache2 configuration file such as httpd.conf) are honored in a .htaccess file.
Duaine had an AllowOverride All in the config, so that's not the problem. And mod_rewrite directives are allowed in .htaccess files, so that's not the problem either. But your later hint (not cited by me) is the right way to go. There is no obvious error in Duaine's config files, he needs to debug. 0) Check the Apache error log for any hints. 1) Put something incorrect in .htaccess and see if it's really used. 2) Turn up the RewriteLogLevel. Make sure that the RewriteLogFile really exists. (The directive were in default-site.conf.) 3) Be aware that this does not work if a virtual host is used. mod_rewrite must be turned on for EACH virtual host, this is not on by default. 4) Check that no other included conf files in conf.d/ change the configuration of the respective directory. There was at least one suspicious include where the apache manual configuration got read twice. Giving more tips would need to read and test the configuration files, and I don't have the time to do that; sorry. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
Joachim Schrod