Solved

301 redirect - PHP and  IIS6

Posted on 2009-07-05
3
513 Views
Last Modified: 2013-12-14
Hi

I've got a new website, the old one was .php, the new one is .aspx

i'm tryng to setup 301 redirects to intercept the old URLs and point to new ones

firstly it is important to note, I'm not trying to host PHP files
I simply want IIS to incerpt the PHP files, and then redirect to the aspx equivelent.

is there anyway of doing this without installing 3rd party components?

I was thinking you could create an isapi extension that somehow makes it work?

any advice apprecitated

also..... the urls have url parameters (index.php?page=1234)

0
Comment
Question by:paulCardiff
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Hube02 earned 500 total points
ID: 24780268
While it is 3rd party software, and you are looking to do this without 3rd party software, I would still highly recommend using the ISAPI Rewrite module by from Helicon: http://www.isapirewrite.com/
The reason is that it will be the easiest way to do it.

Without this you will need to configure IIS for each and every page that needs to be redirected, as far as I know. I personally try to avoid this, but here is a reference on how to do redirects: http://www.getfoundnow.com/iis_301_redirect.htm

To be completely honest, I'm not even sure if what you are looking for is possible.

Your third option, which you were also looking to avoid would be to install PHP and create redirects with PHP pages.

A final option that I would consider second after the Rewrite Module would be to set up a custom 404 page where I would analyze the requested URI. If it was a PHP page then decide what page to send them to.

Anyway, I would consider the possibilities in the following order:

1) ISAPI Rewrite Module
2) Custom 404 page
3) Install PHP and redirect per page
4) Configuring IIS6 to do the redirects

Others may have a different opinion, or be able supply more information.
0
 
LVL 18

Expert Comment

by:Hube02
ID: 24816388
Just curious which method you decided upon.
0
 

Author Comment

by:paulCardiff
ID: 24838168
i used a shared hosting account i have access too, and setup the domain on this (its php)
I then used that to point to the windows server (other domain) using .htaccess files

crude but affective
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql date time 14 33
two ways encryption with php 3 28
SSL Certificate for IIS7 Site 2 22
How to change the nameserver on Ubuntu Server 6 32
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

832 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