![]() |
| Sponsored Links (We share ad revenue): |
|
|
Re: What to do about old html pages |
|
Super Moderator
![]() Posts: 10,598
Location: Blackpool. UK
|
301 redirect
__________________
Chris. ->> Links are advertising NOT optimising!! <<- Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System |
|
|
|
|
|
Re: What to do about old html pages |
|
Junior Talker
Posts: 5
Name: Mike
|
if the old page was a xxx.htm and the new page is php how do I set up a 301 in html?
|
|
|
|
|
|
Re: What to do about old html pages |
|
King Spam Talker
Posts: 1,029
|
This is not necessarily the proper syntax for your server.
RedirectMatch permanent oldpage.html newpage.php All you do is say send the oldpage to the newpage and this change is permanent (301)
__________________
Colbyt Host unlimited domains with cPanel hosting for as little as $2.95 a month. |
|
|
|
|
|
Re: What to do about old html pages |
|
Junior Talker
Posts: 5
Name: Mike
|
Can I have a specific example on a 301 redirect. I'm fairly new at this.
|
|
|
|
|
|
Re: What to do about old html pages |
|
Super Talker
Latest Blog Post:
Valid Markup and the W3C Posts: 113
Location: Northeastern PA
|
.HTACCESS redirect:
Code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
__________________
2MonkeysTyping Webdesign Monkeybusiness |
|
|
|
|
|
Re: What to do about old html pages | |
|
King Spam Talker
Posts: 1,029
|
I gave it to you in one format
Quote:
__________________
Colbyt Host unlimited domains with cPanel hosting for as little as $2.95 a month. |
|
|
|
|
|
|
Re: What to do about old html pages |
|
Novice Talker
Posts: 10
Name: Tobias Eichner
Location: Germany
|
Alternatively a general "This page doesn't no longer exist... please visit our sitemap for more information" could be the better solution. At least it will save you much time especially on complex websites with dozens of pages.
__________________
Business consulting services: http://www.starenterprise.com CGI Perl scripts and software development: http://www.sunnyscript.com |
|
|
|
|
|
Re: What to do about old html pages |
|
Ultra Talker
Latest Blog Post:
Confessions and Reflections of a [Former] ... Posts: 418
Name: Tamar Weinberg
Location: New York
|
Definitely do a 301 redirect. If the content is valuable and you want search traffic from it, a 404 just won't do. Google will forget about that page and move on. Tell Google (especially if it has indexed the page that serves the 404) that your content has moved to another location.
__________________
Techipedia: All About Social Media |
|
|
|
|
|
Re: What to do about old html pages | |
|
Super Moderator
![]() Posts: 10,598
Location: Blackpool. UK
|
Quote:
__________________
Chris. ->> Links are advertising NOT optimising!! <<- Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System |
|
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |