• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 717
  • Last Modified:

How to rewrite php URLs in IIS7?

O need to know how to rewrite php URLs to make them SEO friendly on a Microsoft server.

 I inherited a site that was done in php. I moved it to my server which is a Microsoft server running IIS7. The client does not want to pay me to change it to asp.net so I'm kind of stuck. But he pays well - and on time!

Links look like this: <a href="?p=about"> where p is a folder that contains the about.php page.

I want to use SEO friendly URLs but I don't know how to do that in iis7.

Can anyone point me in the right direction?

Best,
MHenry
0
MHenry
Asked:
MHenry
2 Solutions
 
Shinesh PremrajanTechnical ManagerCommented:
Yes you cant use the .htaccess in IIS, Instead there is a web.config file that works similarly to .htaccess.

Visit this URL to learn how to do a rewrite  in IIS

http://www.iis.net/download/urlrewrite

Hope this helps
0
 
Shinesh PremrajanTechnical ManagerCommented:
http://www.hanselman.com/blog/ASPNETMVCAndTheNewIIS7RewriteModule.aspx

this is also another good site about the redirect.
0
 
mattibuttCommented:
Why can't you install apache it will work without any issue or you don't have an option
0
 
djpazzaCommented:
You need to install this rewrite module for iis7:

http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/

0
 
MHenryAuthor Commented:
sorry for the delay. and thanks for the links. just what I was looking for!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now