SolutionCottage.com
Posted  13 Aug 2009 - 10:33:18

Category: Web Hosting


ISAPI mod rewrite for wordpress

Issue:
I wanted to enable mod_rewrite on my wordpress blog to get these nice permalinks that gives you www.example.com/about-me, for example. This was possible on my webhost using ISAPI.

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

[ISAPI_Rewrite]

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]








0 comments:








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