Posted  13 Aug 2009 - 10:33:18

Category: Web Hosting

ISAPI mod rewrite for wordpress

I wanted to enable mod_rewrite on my wordpress blog to get these nice permalinks that gives you, for example. This was possible on my webhost using ISAPI.

Create a file called httpd.ini in your wwwroot folder with the following content:


RewriteEngine On

RewriteBase /
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
# For special Wordpress folders (e.g. theme, admin, etc.)
RewriteRule /wp-(.*) /wp-$1 [L]

# For all Wordpress pages
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]


© SolutionCottage 2008-2011 7/25/2017 7:29:48 AM