2 years, 11 months ago
How to remove "index.php" from all URLs on my site?
my setup:
-Microsoft IIS 7
-Wordpress
-hosting on godaddy
I can't use the standard mod_rewrite module from apache, since I'm using IIS 7. Microsoft apparently has a URL rewrite module, but how would I go about installing it?
-Microsoft IIS 7
-Wordpress
-hosting on godaddy
I can't use the standard mod_rewrite module from apache, since I'm using IIS 7. Microsoft apparently has a URL rewrite module, but how would I go about installing it?
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$1 Answer
You may want to check out the "Using Permalinks" page on the WordPress codex. They include some information about using Microsoft's URL rewrite module on IIS servers, with WordPress.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$
I figured out the problem. It was simple a bit more expensive.
To use any kind of mod_rewrite functionality on an IIS 7 site with Wordpress, there are four conditions that need to be met:
1. PHP is running via FastCGI
2. PHP version 5 is used
3. URL Rewrite Module 1.1 is installed and enabled.
4. Wordpress 8 or the beta version installed and running.
Because I am hosting with godaddy, my problem started right at #1: godaddy *only* includes FastCGI on their Linux plans, not on any IIS plans. Because of this, I simply ponied up $20 to upgrade from IIS 7 to a Linux Delux plan, which used Apache and comes with the true mod_rewrite module already enabled.
I was then able to go into the "permalinks" menu in Wordpress 7 admin, and change the permalink structure to "pretty permalinks," i.e.:
sitename.com/2009/06/02/post-name-here
No more index.php crap.
I didn't even need to update the .htaccess file, as it appeared to have been done automatically.
Bottom line: if you're using IIS, wordpress, are hosting with godaddy and you want pretty URLs, upgrade to a Linux and get off IIS.
This post was helpful on the subject:
http://ruslany.net/2009/05/iis-7-url-rewrite-module-support-in-wordpress-28/