Weird mod_rewrite problem
-
I’m having a weird mod_rewrite problem. I’ve enabled permalinks (mod_rewrite) and it is working for every page except for index.php.
Working link: http://www.poundbangwhack.com/about
Nonworking link: http://www.poundbangwhack.com
.htaccess file:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressExcerpt from httpd.conf file:
<Directory /> Options FollowSymLinks AllowOverride All </Directory>Excerpt from httpd error logs:
Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/poundbangwhack.com/httpdocs/
The strangeness is that the server only throws the 403 forbidden error on the index.php page. I have a feeling this may not be necessarily a WordPress related issue, but it is where I cam currently experiencing the problem and need this to work.
Before people point out the obvious, I have been all over the internet searching for this. As you can see above, the .htaccess is setup correctly and I have enabled the ‘Options FollowSymLinks’ in my httpd.conf file. Permissions are also set correctly as well. I work in the server support department of a major internet hosting provider and hate asking for help, but I have literally checked everything I can think of and tried multiple “fixes” found online, all with no luck. Please don’t answer with ‘the usual suspects’ type of fixes as I have gone through them all. I’m hoping someone else has had this problem before and can provide a solution. Thanks.
The topic ‘Weird mod_rewrite problem’ is closed to new replies.