Wordpress and IIS... Permalink blues

0 replies
Good morning all (from Dallas),

I have a host that runs Apache servers... I also have a host that runs IIS. My Apache host has no problems with permalinks in my Wordpress sites because the .htaccess file is created by default.

Well... if you're installing Wordpress on an IIS server, your Permalinks may not work "out of the box", and you may need to add a certain file to the root of your Wordpress directory. Don't try to create a .htaccess file as I did ... you'll need to create an "httpd.ini" file to make your Permalinks work.

To create this file... do the following:

- Open a text editor... I use Notepad (for Windows)
- Copy the following code into the empty document:

[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]
- Click File
- Choose "Save As..."
- Erase the *.txt that's in the field, and type "httpd.ini" (no quotes) in the "File name:" section
- Change the "Save As Tye" section to "All Files"
- Save the file to your desktop (or somewhere on your hard drive that's easy to find)

Now use your FTP client to upload this file to the root of your Wordpress site... and by "root" I mean the same location as the "index.php" file.

I'm sure MANY of you already know this, but it took mt 3 months to figure this out, and I'm trying to help those that may have this problem in the future.

Permalinks is very important for SEO, so if your host is running IIS (Windows) then you may need to create this file if your permalinks won't show your page.

Thanks,

DeShon
#blues #iis #permalink #wordpress

Trending Topics