PDA

View Full Version : How to do 301 re-directs from .asp to php


outofbounds
12-27-2006, 01:14 AM
hello there!

We want to migrate our site from its current asp.net platform to a php/Linux platform.

The new site has been built on php and doesnt match page by page with the existing site on asp.net. In fact, the new site is smaller.

Nonetheless, the existing site has fairly good page rank, up to PR 5 on some pages. I want to pass that PR on to the new site.

My questions are:

(1) How do i set up 301 redirects from the existing ASP.net pages to the new site that is on a totally different platform? The new site is hosted on linux with PHP and thus how could i define 301 redirects using apache for a file type that is not even supported?

Can i set up rewrites on the new apache server for those asp.net files even though apache does not support asp.net? Or do i have to set those redirects up on the existing IIS/.net platform?

(2) Is it okay to redirect 5 or 6 of the existing .net pages to the same php page? the new site does not match page by page to the .net site...

thanks in advance!

outofbounds.

evilgreenmonkey
12-27-2006, 06:46 AM
Hi,

If you're using the same domain name when you switch across to LAMP (Linux, Apache, MySQL and PHP), then you can simply create standard 301 redirects in a .htaccess file such as:Redirect 301 /folder/file.aspx http://www.domain.com/newfolder/file.phpIt doesn't matter whether the new server supports the old file extension or if the file even ever existed. All this line is saying is "don't bother looking for /folder/file.aspx on the server hard drive, just point people over to the new URL".

With regards to multiple 301s over to one new page, this is fine as long as the content/topic which existed at the old address is now available on the new page.

HTH

Rob