Solved

How to rewrite php URLs in IIS7?

Posted on 2011-03-13
5
702 Views
Last Modified: 2013-12-13
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
Comment
Question by:MHenry
5 Comments
 
LVL 17

Accepted Solution

by:
Shinesh Premrajan earned 500 total points
ID: 35125447
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
 
LVL 17

Assisted Solution

by:Shinesh Premrajan
Shinesh Premrajan earned 500 total points
ID: 35125454
http://www.hanselman.com/blog/ASPNETMVCAndTheNewIIS7RewriteModule.aspx

this is also another good site about the redirect.
0
 
LVL 11

Expert Comment

by:mattibutt
ID: 35126083
Why can't you install apache it will work without any issue or you don't have an option
0
 
LVL 9

Expert Comment

by:djpazza
ID: 35127798
You need to install this rewrite module for iis7:

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

0
 
LVL 7

Author Comment

by:MHenry
ID: 35144190
sorry for the delay. and thanks for the links. just what I was looking for!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question