I'm using hosting that is shared with IIS7 and support for PHP. I'm attempting to operate a wordpress blog with "pretty web addresses" (getting rid of index.php). The host company does not wish to install the URLRewrite module, to ensure that option is not open to me. I discovered a wordpress plugin for wordpress which will take away the index.php from permalink Web addresses and altering the 404 page to index.php should really have the desired effect... that is not working either.

I am acquainted with URL spinning to have an ASP.Internet website, but I am unsure the way i would do it for PHP. The hosting setup appears to aid ASP.Internet and PHP simultaneously, so I am thinking it might be easy to run the rewrite code through ASP.Internet, but I am unsure how to pull off it.

Does anybody have knowledge about this or any ideas about a great way to consider. Contrary leads me within the right direction or maybe I decipher it out myself, I'll be more than pleased to talk about the code for anybody else that could require it.

I am while using ManagedFusion Url Rewriter along with a custom 404 error page on my small blog.

The ManagedFusion Url Rewriter takes a file known as ManagedFusion.Rewriter.rules that imitates .htaccess, I needed to experiment by using it a great deal to have it right so I'll include things i presently have in mine:

#  Handled Fusion Url Rewriter

#  http://managedfusion.com/items/url-rewriter/


#  Produced by: Nick Berardi

#       Support: support@managedfusion.com


RewriteEngine on


# Place Rules Below


# misc WordPress rewrites

RewriteRule ^/wordpress-login.php$ /wordpress-login.php [L]

RewriteRule ^/wordpress-comments-post.php$ /wordpress-comments-publish.php [L]

RewriteRule ^/wordpress-admin/(.*)$ /wordpress-admin/$1 [L]

# deny use of evil robots site rippers offline browsers along with other nasty scum

RewriteCond % ^Anarchie [OR]

RewriteCond % ^ASPSeek [OR]

RewriteCond % ^attach [OR]

RewriteCond % ^autoemailspider [OR]

RewriteCond % ^Xaldon WebSpider [OR]

RewriteCond % ^Xenu [OR]

RewriteCond % ^Zeus.*Webster [OR]

RewriteCond % ^Zeus

RewriteRule ^.* - [F,L]

# remove world wide web

RewriteCond % ^www.robboek.com$ [NC]

RewriteRule ^(.*)$ http://robboek.com$1 [R=301]

# redirect old web addresses

RewriteRule ^/2008/12/blog-on-hold.html$ /2008/12/12/blog-on-hold/ [R=301]

RewriteRule ^/2008/11/google-chrome-wont-start-in-vista-x64.html$ /2008/11/16/google-chrome-wont-start-in-vista-x64/ [R=301]

RewriteRule ^/2008/11/pass-community-summit-2008-occasions.html$ /2008/11/14/pass-community-summit-2008-occasions-calendar/ [R=301]

RewriteRule ^/2008/11/fort-stevens-camping-trip.html$ /2008/11/14/fort-stevens-camping-trip/ [R=301]

RewriteRule ^/2008/10/first-publish.html$ /2008/10/10/first-publish/ [R=301]

RewriteRule ^/blog/CommentView,guid,1d8cba50-0814-4c89-86df-eca669973e8e.aspx$ /2006/09/29/junctions-in-home windows-vista/ [R=301]

RewriteRule ^/blog/2006/09/29/JunctionsInWindowsVista.aspx$ /2006/09/29/junctions-in-home windows-vista/ [R=301]

# rewrite all nonexistent files and sites to make use of index.php for WordPress

RewriteCond % !-d

RewriteCond % !-f

RewriteRule ^(.*)$ /index.php$1

The guidelines handle the beautiful web addresses, take away the world wide web, and redirect several old web addresses from the previous blog.

I in addition have a file "404.php" which i have setup as my custom 404 error page. This isn't required for the beautiful web addresses, but will help you to make use of the wordpress 404 page in custom styles. Listed here are the contents:



$pos = strrpos($qs, '://')

$pos = strpos($qs, '/', $pos + 4)

$_SERVER['REQUEST_URI'] = substr($qs, $pos)




Hopefully helps. It's been working perfectly for me personally to date.

-Take advantage of

Update: I simply published a blog article on my small experience using WordPress on IIS7