Jump to content


Photo

How to 301 Redirect a HTML page?!


  • Please log in to reply
10 replies to this topic

#1 jpf566

jpf566

    Member

  • Member
  • PipPip
  • 27 posts

Posted 16 August 2011 - 11:23 PM

Ok I’ve been doing web design for quite some time but haven’t ever needed to do 301 redirect a site before…I have someone who took over a company and also changed the company name so the entire website and domain name has changed. I need to 301 redirect the old site to the new. I know I could just throw an ASP or PHP 301 redirect BUT the problem is that the files are HTML. Wouldn’t that defeat the purpose if I changed all the file names to .ASPX and then redirected them to the new site? All the new .ASPX pages would be seen as new (or worse duplicate) content form google! How in the world am I supposed to 301 redirect html pages? Thanks for any help guys Seriously.
  • 0

#2 Ben

Ben

    Administrator

  • Administrators
  • 5,553 posts
  • LocationChico, CA

Posted 16 August 2011 - 11:29 PM

If you are running on a Linux server, you can do a 301 redirect using a .htaccess file. If you are running on a Windows server, I am less familiar with the process... I know it's possible, but it may be something you have to contact your host about and get their help to set up. I believe it is done through IIS, which if you are on a shared hosting setup, you may or may not have access to. http://www.submitawe...ows-server.html
  • 0
Benjamin Falk
Falken Creative : Twitter

#3 jpf566

jpf566

    Member

  • Member
  • PipPip
  • 27 posts

Posted 16 August 2011 - 11:52 PM

arg that sounds.... troublesome...Maybe ill just do up a rel=canonical?
  • 0

#4 jpf566

jpf566

    Member

  • Member
  • PipPip
  • 27 posts

Posted 20 August 2011 - 03:32 PM

My host told me that there is no way I can do anything on there end other than changing the files to .asp and adding a .asp redirect (which defeats the purpose of a 301 since the search engines will see the .asp file extension as different content) My domain is hosted with a different company (godaddy) and they said i should just do a permanent redirect through Godaddy but I've heard that isnt an actually way to do a 301. Im so confused. Maybe I'll just do rel=canonical
  • 0

#5 Guest_Danish

Guest_Danish
  • Guests

Posted 14 December 2011 - 12:44 AM

Hello,

I also want to know how to resolve this problem....
  • 0

#6 palmgeo

palmgeo

    New member

  • New Members
  • 6 posts
  • Locationindia

Posted 28 December 2011 - 04:16 AM

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's must say that implement of 301 redirect means it should preserve your search engine rankings for that particular page. 301 redirct is impemented through 301 redirect.When a visitor/spider requests a web page, your web server checks for a .htaccess file. The .htaccess file contains specific instructions for certain requests, including security, redirection issues and how to handle certain errors.
  • 0

#7 umesh

umesh

    New member

  • New Members
  • 2 posts

Posted 17 January 2012 - 02:35 AM

redirecting is the best way to redirect the pages which are not found in the web site. when the pages are not found then the page will be displayed with the 301 error page with specified links.

Edited by Andrea, 17 January 2012 - 06:18 AM.
Link Deleted - No SPAM, please

  • 0

#8 sumitbook

sumitbook

    New member

  • New Members
  • 2 posts

Posted 17 January 2012 - 06:02 AM

With HTML you need to make an .htaccess file and add 301 redirection code in it and add into root directory and this will work :)
  • 0

#9 FKami

FKami

    New member

  • Member
  • 11 posts

Posted 03 April 2012 - 04:40 PM

My host told me that there is no way I can do anything on there end other than changing the files to .asp and adding a .asp redirect (which defeats the purpose of a 301 since the search engines will see the .asp file extension as different content) My domain is hosted with a different company (godaddy) and they said i should just do a permanent redirect through Godaddy but I've heard that isnt an actually way to do a 301. Im so confused. Maybe I'll just do rel=canonical


I have my website hosted by Godaddy as well and i m using .htaccess file to do 301 redirects and it works just fine
  • 0

#10 bistroexchange

bistroexchange

    New member

  • New Members
  • 1 posts

Posted 04 April 2012 - 01:19 AM

Ummm.. good luck in IIS I have to add code to the page to get a clean 404 or 301. M$ seem to think the protocols are open to interpretation. If it's an .htm page and you don't have access to the asp parsing engine then there is little you can do. If you had access to the parser you could configure the server to parse .htm as .asp and add the code at the page level. Otherwise with newer IIS you basically send bad header responses to SE's. For instance if you set up a default 404 it will always return 200 code which is exactly opposite of the intent of the page.






Edited by Andrea, 04 April 2012 - 04:46 AM.
Link Deleted - No SPAM, please

  • 0

#11 croptech

croptech

    Member

  • Member
  • PipPip
  • 17 posts

Posted 13 June 2012 - 12:45 AM

doing web design for quite some time, but when you need to do a 301 redirect page for more ... I need someone who took over the company and also changed the company name to the whole site and the domain name has been changed. I need to 301 redirect the old to the new site. I know I could just throw the ASP or PHP 301 redirect, but the problem is that the files are in HTML. Would not that defeat, if I changed all the file names.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users