Welcome to WebmasterWorld Guest from 54.161.118.57

Forum Moderators: ocean10000

Message Too Old, No Replies

.asp to .html redirection

.ASP to .HTML redirection

     
10:59 am on Jul 7, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 6, 2006
posts: 64
votes: 0


Hi,
I have an website with .asp url extension. Now i have prepared a HTML beta version for the same website. How can i optimize it for search engines?

Is it required to redirect the old url(ASP) to the new HTML page ?

Kindly suggest

7:22 am on July 8, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:733
votes: 0



Is it required to redirect the old url(ASP) to the new HTML page ?

It's not required but it is advisable, not only for search engines, but also for visitors that have bookmarked your pages, or linked to them from other websites/forums etc.

If you do not have many pages, you can make an ASP version of every page and redirect it with a 301 to the corresponding .html page.

ie. [mywebsite.com...] can be redirected as follows:


<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.mywebsite.com/page.html"
%>
9:18 am on July 8, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 24, 2005
posts:965
votes: 0


No, do not use redirects if at all possible! 301 redirects are better than other redirects but they are still not advisable.

You should simply save your .html files as .asp files. This has no adverse effect in the search engines.

9:31 am on July 8, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:733
votes: 0


No, do not use redirects if at all possible! 301 redirects are better than other redirects but they are still not advisable.

You should simply save your .html files as .asp files. This has no adverse effect in the search engines.


Ah, didn't think of that... :( good advice!
12:44 pm on July 8, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 6, 2006
posts:64
votes: 0


ok thanks..

But i have made changes on file path.

[mywebsite.com...] is now [mywebsite.com...]

12:50 pm on July 8, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


You may have changed the file path on the hard drive of the server, but you can still keep the old URLs as shown externally, simply by using a rewrite.

Use the old URLs as links on the pages of the site, and then set up an internal rewrite. The rewrite translates the requests for old URLs into the new internal filepath to fetch the content from.

As this is a rewrite it does not expose the internal filepath back to the browser.

Be very clear as to the differences between a redirect and a rewrite.

5:14 am on July 9, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 6, 2006
posts:64
votes: 0


ok..
How can i rewrite my old URL to new URL?

Old url: [mywebsite.com...]
New URL: [mywebsite.com...]

Kindly suggest what to do?

12:03 pm on July 9, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


As explained above, a rewrite connects an external URL request to an internal filepath.

If you are sending the user to a new URL, then that is a redirect.

.

So, what is your question...?

Do you want to redirect this URL request www.mywebsite.com/page.asp and this URL request mywebsite.com/page.asp to a new URL at www.mywebsite.com/folder/page.html?

Or, do you want to rewrite a request for this URL www.mywebsite.com/page.asp so that the content is silently fetched from this internal filepath /folder/page.html without exposing what that filepath actually is?

Which one is it?

The difference between a URL request and an internal filepath is key here, as is the difference between a rewrite and a redirect.

1:01 pm on July 9, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 6, 2006
posts:64
votes: 0


I want to redirect my old url page.asp to new /folder/page.html.

The reason, some of internal pages got ranked in search engines. so if it is clicked it should go to my new html page.