Permalinks errar – page not found. Modifying the httpd.conf file directly
-
0 down vote favorite
I’m trying to change the permalinks in WordPress, so the URL uses the post-names instead.
I’ve tried to modify the httpd.conf directly as below but Apache doesn’t seem to be parsing the URL. I keep getting page not found.
I can’t see any attempts to redirect whatsoever as the rewrite logs are empty. I have tried several over rewrite conditions that is known to work outside of the tag but the logs are still empty.
<Directory "/var/www/user1/example.com/public_html"> Options +Indexes FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from All <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> </Directory>
It seems the RewriteRule and RewriteCond isn’t working when placed in the tag as when I move these directives outside the tag, apache does parse the URL correctly and page’s does have some contents. Hoever, the displayed pages no longer has any structure; it appears certain css files did not get loaded or possible the rewrite performed was done incorrectly.
Any help would be greatly appreciated. Thank you.
- The topic ‘Permalinks errar – page not found. Modifying the httpd.conf file directly’ is closed to new replies.