Killersites Community: How to 301 Redirect a HTML page?! - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to 301 Redirect a HTML page?!

#1 User is offline   jpf566 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 27
  • Joined: 27-March 09

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 User is offline   Ben 

  • View blog
  • Group: Administrators
  • Posts: 5,409
  • Joined: 19-December 08
  • 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
Benjamin Falk | Falken Creative : Twitter : KillerSites Screencast Blog
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
0

#3 User is offline   jpf566 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 27
  • Joined: 27-March 09

Posted 16 August 2011 - 11:52 PM

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

#4 User is offline   jpf566 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 27
  • Joined: 27-March 09

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

  • Group: Guests

Posted 14 December 2011 - 12:44 AM

Hello,

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

#6 User is offline   palmgeo 

  • View blog
  • Group: New Members
  • Posts: 6
  • Joined: 20-September 11
  • 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 User is offline   umesh 

  • View blog
  • Group: New Members
  • Posts: 2
  • Joined: 17-January 12

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.

This post has been edited by Andrea: 17 January 2012 - 06:18 AM
Reason for edit: Link Deleted - No SPAM, please

0

#8 User is offline   sumitbook 

  • Group: New Members
  • Posts: 2
  • Joined: 17-January 12

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 User is offline   FKami 

  • View blog
  • Group: Member
  • Posts: 11
  • Joined: 28-February 12

Posted 03 April 2012 - 04:40 PM

jpf566, on 20 August 2011 - 03:32 PM, said:

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 User is offline   bistroexchange 

  • View blog
  • Group: New Members
  • Posts: 1
  • Joined: 04-April 12

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.






This post has been edited by Andrea: 04 April 2012 - 04:46 AM
Reason for edit: Link Deleted - No SPAM, please

0

#11 User is offline   croptech 

  • PipPip
  • View blog
  • Group: Member
  • Posts: 17
  • Joined: 13-June 12

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users