Forum Moderators: open

Message Too Old, No Replies

.asp to .html redirection

.ASP to .HTML redirection

         

ashis06

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

10+ Year Member



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

marcel

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

WebmasterWorld Senior Member 10+ Year Member




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"
%>

mrMister

9:18 am on Jul 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.

marcel

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

WebmasterWorld Senior Member 10+ Year Member



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!

ashis06

12:44 pm on Jul 8, 2008 (gmt 0)

10+ Year Member



ok thanks..

But i have made changes on file path.

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

g1smd

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

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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.

ashis06

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

10+ Year Member



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

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

Kindly suggest what to do?

g1smd

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

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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.

ashis06

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

10+ Year Member



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.