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.
Also I've checked the rewrite logs and noticed that the parameter RewriteBase passes through the request without doing anything:
110.175.55.89 - - [28/Jun/2014:15:52:00 +1000] [dev.ebizimate.com/sid#7f6cbbab7738 [rid#7f6cbbd07c38/initial] (2) init rewrite engine with requested uri /blog/
110.175.55.89 - - [28/Jun/2014:15:52:00 +1000] [dev.ebizimate.com/sid#7f6cbbab7738][rid#7f6cbbd07c38/initial] (1) pass through /blog/
Any help would be greatly appreciated. Thank you.