[opensuse] Re: apache mod_rewrite
On Sun, 03 May 2009 20:49:16 +0000, Jim Henderson wrote:
If you put garbage in the .htaccess file in question, do you get a server error trying to access the page/directory in question?
Duaine - in response to your off-list e-mail, you hadn't indicated how you'd determined it wasn't reading it. We're not mind readers, you know. ;-) Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jim Henderson wrote:
On Sun, 03 May 2009 20:49:16 +0000, Jim Henderson wrote:
If you put garbage in the .htaccess file in question, do you get a server error trying to access the page/directory in question?
Duaine - in response to your off-list e-mail, you hadn't indicated how you'd determined it wasn't reading it. We're not mind readers, you know. ;-)
Jim
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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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. Accordingn to <http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride> none of these directives are accepted in an AllowOverride directive. And while I'm sure this is entirely formulaic and that you've seen it already, I'll quote it just in case (check out the 2nd paragraph): From <http://httpd.apache.org/docs/2.0/howto/htaccess.html>: -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- Troubleshooting When you put configuration directives in a .htaccess file, and you don't get the desired effect, there are a number of things that may be going wrong. Most commonly, the problem is that AllowOverride is not set such that your configuration directives are being honored. Make sure that you don't have a AllowOverride None in effect for the file scope in question. A good test for this is to put garbage in your .htaccess file and reload. If a server error is not generated, then you almost certainly have AllowOverride None in effect. If, on the other hand, you are getting server errors when trying to access documents, check your Apache error log. It will likely tell you that the directive used in your .htaccess file is not permitted. Alternately, it may tell you that you had a syntax error, which you will then need to fix. -==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 04 May 2009 00:10:13 -0500, Duaine & Laura Hechler wrote:
Jim Henderson wrote:
On Sun, 03 May 2009 20:49:16 +0000, Jim Henderson wrote:
If you put garbage in the .htaccess file in question, do you get a server error trying to access the page/directory in question?
Duaine - in response to your off-list e-mail, you hadn't indicated how you'd determined it wasn't reading it. We're not mind readers, you know. ;-)
Jim
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
What are the ownership and permissions set to on the file? Have you tried increasing the log level for apache? It strikes me that changing the rewrite log level probably won't tell you anything if the file is not being read, but if it is being read and there's some sort of problem, the rewrite log might help as well. Jim -- Jim Henderson Please keep on-topic replies on the list so everyone benefits -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Duaine & Laura Hechler
-
Jim Henderson
-
Randall R Schulz