mod_rewrite and subdirectory redirection
Posted: Wed Jun 16, 2010 4:37 pm
I am having an issue where sub-directories are redirecting to the blog page. I found the suggestion in the FAQ to use a .htaccess file in the sub-directory with "rewriteengine Off" to correct this, but that did not work. I dug into the issue further and found this thread:
http://board.s9y.org/viewtopic.php?f=2&t=14382
With some of the information there, I went and checked the Serendipity configuration and found, to my surprise, that mod_rewrite was already set as "disabled." That seemed to explain why the .htaccess directive was having no effect, but doesn't explain why the sub-directory is being re-directed in the first place.
I have since tried setting mod_rewrite on in the configuration and using the .htaccess file in the subdirectory to bypass it, but it still does not work. Can anyone shed some light on what may be happening here? Would you expect the subdirectory redirection to be a problem even when URL Rewriting is disabled? If so, how can I prevent it if it isn't mod_rewrite that is doing it? Or, if I enable URL Rewriting with mod_rewrite, can you think of any reason that the .htaccess directive in the subdirectory is not preventing the redirect (I have double-checked that the .htaccess file is being processed by the server, and other directives I place in it do take effect)?
Thanks!
http://board.s9y.org/viewtopic.php?f=2&t=14382
With some of the information there, I went and checked the Serendipity configuration and found, to my surprise, that mod_rewrite was already set as "disabled." That seemed to explain why the .htaccess directive was having no effect, but doesn't explain why the sub-directory is being re-directed in the first place.
I have since tried setting mod_rewrite on in the configuration and using the .htaccess file in the subdirectory to bypass it, but it still does not work. Can anyone shed some light on what may be happening here? Would you expect the subdirectory redirection to be a problem even when URL Rewriting is disabled? If so, how can I prevent it if it isn't mod_rewrite that is doing it? Or, if I enable URL Rewriting with mod_rewrite, can you think of any reason that the .htaccess directive in the subdirectory is not preventing the redirect (I have double-checked that the .htaccess file is being processed by the server, and other directives I place in it do take effect)?
Thanks!