Pretty URLS with IIS 7.5

Permalink 1 user found helpful
Hello!

I'm moving a website to a Windows 2008 R2 box running IIS 7.5 and am currently stuck on enabling pretty URLS. I have yet to find any documentation on using IIS's URL Rewrite module to enable pretty URLS.

Anyone know how to do this?

I've looked into Ionics Isapi Rewrite Filter to achieve the rewrite, but it doesn't directly support 64bit OS.

Thanks,
Ben

 
ConcreteBen replied on at Permalink Best Answer Reply
I found a good solution using the URL Rewrite module.

Basically all you have to do is:

1. click on the site in IIS
2. click on the URL Rewrite extension
3. click "Import"
4. under "rewrite rules" paste:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

You should see the converted rules populate.

5. Click Apply

And your done! Enable pretty URLS in the Concrete dashboard and your all set.
Deladroid replied on at Permalink Reply
Deladroid
These steps worked like a charm for my "pretty url" issue on IIS 7 too! Thanks.
Deladroid replied on at Permalink Reply
Deladroid
I wanted to add a little more information in regards to my situation, as I recently ran into the issue of pretty urls and being on IIS again, but didn't have URL_Rewrite available in IIS Manager. Using Plesk, I had to 'remote desktop' into the server and install the URL_Rewrite (http://www.iis.net/download/urlrewrite) IIS extension, as it wasn't installed by default (GoDaddy Virtual Server). After that, importing the rule above worked like a charm (again). Thanks.