![]() |
|
![]() | ||
|
Subject:
Proper Redirect in HTML
Category: Computers > Programming Asked by: abouttime-ga List Price: $5.00 |
Posted:
18 Jun 2004 15:10 PDT
Expires: 18 Jul 2004 15:10 PDT Question ID: 363154 |
We have a business that has been selling wholessale watches since 1952 and we also have a website (www.abouttime.com). We have a individual page for each brand of watch we sell. I have created new watch brand pages with new URL's to replace my old watch brand pages. For example using one watch brand and the old page (old url) and the new page (new URL) would be like this; http://www.abouttime.com/elini.html this is the one of the old Elini watch brand pages http://www.abouttime.com/elini-watches.html this is one of the new Elini watch brand pages From this brand I have removed all associated links within my website to the old brand page (http://www.abouttime.com/elini.html) and now have all links pointing to the new brand page (http://www.abouttime.com/elini-watches.html). It has been like this for months and usually google captures my changes within a week. The isssue is that I cannot get google to replace my listings within the search engine with my new page (new url). I have read that I need to create a 301 redirect on the old page to the new page. So this is what I am asking; What should I exactly do to fix this issue? I would prefer to use HTML code that I can cut from the answer of this question and paste into my site. Is it a 301 redirect that I need and what exactly should the code me that I can paste into my site code to have this redirect work? If it is not a 301 redirect what exactly should I do? Thank you |
![]() | ||
|
Subject:
Re: Proper Redirect in HTML
Answered By: palitoy-ga on 19 Jun 2004 01:59 PDT Rated: ![]() |
Hello Abouttime The easiest way to solve this issue is to add a <meta> tag to the top of your http://www.abouttime.com/elini.html page. This can be done by adding this following line in the <head> section of your elini.html page: <meta http-equiv="refresh" content="0;url=http://www.abouttime.com/elini-watches.html" /> The "0" in the above line means the user is immediately redirected to the elini-watches.html page. This means that anyone who visits the old page will now automatically be redirected to the new one. An alternative method is available if your website is running on the Apache webserver. First you need to check with your webhost that you have the mod_alias module installed (most set-ups do have this installed) and that you have access to the .htaccess file. If the mod_alias module is not available, the mod_rewrite module would also work (this is more powerful). You then need to add this line to your .htaccess file: Redirect permanent elini.html http://www.abouttime.com/elini-watches.html This will permanently redirect anyone who enters elini.html in their URL to elini-watches.html with a 301 redirect. Like robertskelton-ga said this is not done at the HTML level but at a server level. In my opinion this is a better way of achieving what you want to do than by using the <meta> tag above. Further advice on using mod_alias can be found here: http://httpd.apache.org/docs/mod/mod_alias.html http://httpd.apache.org/docs/mod/mod_rewrite.html If you have any questions regarding this subject please ask for clarification and I will do my best to help. | |
| |
| |
| |
| |
|
abouttime-ga
rated this answer:![]() |
![]() | ||
|
Subject:
Re: Proper Redirect in HTML
From: robertskelton-ga on 18 Jun 2004 22:52 PDT |
A 301 redirect is not done at HTML level, but rather in a file on your server. It seems to me that Google updates content much more frequently than links. Waiting will work fine. The benefits of the new file names won't occur until Google updates links. |
Subject:
Re: Proper Redirect in HTML
From: terje-ga on 28 Jun 2004 02:06 PDT |
palitoy-ga says, "You then need to add this line to your .htaccess file:" Well, that .htaccess file can be uploaded to your web page directories by you, so you don't have to involve your webhost to create the 301 redirect. This is provided that mod-alias is installed, and .htacces is enabled by your webhost. |
Subject:
Solving the google problem...
From: vellmont-ga on 28 Jun 2004 06:58 PDT |
When google indexes a site it looks for a file in the root directory called robots.txt to determine what files shouldn't be indexed. If you want the old pages to be removed from googles directory simply put an entry for each page in the robots.txt file. See more information about robots.txt <a href="http://www.robotstxt.org/wc/norobots.html">here</a> |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |