iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-05-2008, 07:34 AM
DVDStar's Avatar
WebProWorld Member
 
Join Date: Mar 2008
Posts: 45
DVDStar RepRank 0
Default How do I implement 301 redirect with html?

Hi all,

I’ve recently set up a new leaflet printing website to replace my old domain. I know a bit about 301 redirects and have managed to implement one for the home page by replacing the index.htm file with a index.php file, and placing a php redirect in the header.

However, all the other pages of the domain are .htm files, and the host says that I cannot implement a .htaccess file unless I upgrade my account and pay lots more money. Obviously I would prefer not to do this as the site is being shut down.

As a temporary (and not ideal) solution I have used a meta refresh on some of the important pages, to redirect users to the new site. An example can be seen here.

So the question is, does anyone know of a way around this without upgrading my package and spending lots more money on a dying domain?

--------------------------------
Dave

Last edited by DVDStar; 06-05-2008 at 07:53 AM.
Reply With Quote
  #2 (permalink)  
Old 06-05-2008, 07:55 AM
WebProWorld Member
 
Join Date: Aug 2004
Location: Wales UK
Posts: 55
Old Welsh Guy RepRank 2
Default Re: How do I implement 301 redirect with html?

lots of money? you can get hosting with HTaccess for like £10 a year!

you can't do a 301 redirect in html
__________________
Internet Marketing Consultancy - SEO Agony Uncle - Web Design Wales in browser self edit websites
Reply With Quote
  #3 (permalink)  
Old 06-05-2008, 06:50 PM
WebProWorld Member
 
Join Date: Jul 2003
Location: Fairview, NC
Posts: 58
twopooches RepRank 0
Default Re: How do I implement 301 redirect with html?

I am not sure if this is what you are looking for but it seems to offer a variety of solutions. 301 Redirect - How to create Redirects
__________________
Website consulting and design for...
small business, home based companies, personal or hobby websites
http://twopooches.com/
Reply With Quote
  #4 (permalink)  
Old 06-05-2008, 06:54 PM
WebProWorld New Member
 
Join Date: Aug 2005
Posts: 4
triumph RepRank 0
Default Re: How do I implement 301 redirect with html?

Ah this reminds me of a problem I had years ago trying to redirect a typepad site to a domain I purchased.

I met a few folks from Google at a conference, and they recommended a 0 second meta refresh. They said it's not optimal, but it should work. You can google for the instructions.

Good luck!
Reply With Quote
  #5 (permalink)  
Old 06-05-2008, 06:56 PM
WebProWorld New Member
 
Join Date: Mar 2007
Posts: 14
simonwheatley RepRank 0
Default Re: How do I implement 301 redirect with html?

Can you create 301 redirects in HTML...

Short answer: no
Long answer: sorry, no

"Hilarity" aside you might rethink your concern over spending money on a "dying domain". Either the domain gets no traffic, in which case there is a case for not throwing the money away on little traffic... on the other hand if this domain gets a fair amout of traffic you can think of it as spending the money moving a guaranteed traffic stream over to the new domain, and there'll be a time at which the return from that redirection becomes not worth it, when you simply kill that hosting account.

Good luck.
Reply With Quote
  #6 (permalink)  
Old 06-05-2008, 07:48 PM
Terry Van Horne's Avatar
WebProWorld Veteran
 
Join Date: Apr 2008
Location: Toronto On., Ca.
Posts: 471
Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4
Default Re: How do I implement 301 redirect with html?

If the host allows you to process html files with the PHP engine then... you can. That requires access virtual hosting often doesn't provide. My server can run ASP on an html page I just had to set the ASP script engine to be invoked on htm extension as well. It's kinda' resource intensive but it allows me to run sponsor scripts in pages I couldn't otherwise do it.

I wouldn't walk away from any domain that has been live for a few years, that IMO, definitely leaves money on the table. Google authority, IMO is influenced by the age of a site.
__________________
Follow me on Twitter! On the Trail with SOSG How I became a Social Media Convert and Twitter and Agents of Influence and now regular poster at Cloudmixer where We're Mixing New Media Ideas.

Last edited by Terry Van Horne; 06-05-2008 at 07:50 PM.
Reply With Quote
  #7 (permalink)  
Old 06-05-2008, 08:13 PM
WebProWorld New Member
 
Join Date: Dec 2003
Location: Australia
Posts: 10
a_snowden RepRank 0
Default Re: How do I implement 301 redirect with html?

You shouldn't have to pay more for .htaccess, move to a better web host!
Reply With Quote
  #8 (permalink)  
Old 06-05-2008, 09:37 PM
kcire's Avatar
WebProWorld Pro
 
Join Date: Apr 2004
Location: Amsterdam, Netherlands
Posts: 132
kcire RepRank 0
Thumbs up Re: How do I implement 301 redirect with html?

Quote:
Originally Posted by Old Welsh Guy View Post
lots of money? you can get hosting with HTaccess for like £10 a year!
I totally agree!

If a host wants more money while there are competitors that offer the same and in your case more, for the same amount or less money, I would suggest to them setting 'a move of my domain in progress' because I would be leaving them for another 'cheaper and completer' host.

If they value you as a client they will not want this to happen so probably let you place a .htaccess file where ever you want! Or maybe come up with another solution...

Not to be a cheap bastard...but to remind the host that this is the situation and show them that doing something 'extra' will make you a satisfied customer. And what is better then that?
__________________
Erick Schluter
Linkage, a nice websites portal
Amsterdam . Netherlands
http://www.linkage.nl

Last edited by kcire; 06-05-2008 at 09:38 PM. Reason: Correcting a sentence...
Reply With Quote
  #9 (permalink)  
Old 06-05-2008, 11:29 PM
ron angel's Avatar
WebProWorld Veteran
 
Join Date: Jan 2004
Location: london uk
Posts: 336
ron angel RepRank 2ron angel RepRank 2
Default Re: How do I implement 301 redirect with html?

Quote:
Originally Posted by Old Welsh Guy View Post
lots of money? you can get hosting with HTaccess for like £10 a year!

you can't do a 301 redirect in html
I DID NOT write the following but used it a few years ago when changing sites. worked ok with htm files for what I was doing.hope it is useful to you.
----------------------------
Creating a refresh-style redirect in raw html

Assuming that you have already created the "new" html page that you want people to be redirected to, in the <HEAD> section of the "old" document, you will want to insert the following code:

<meta http-equiv="refresh" content="0;URL=class_wsd.html">

where class_wsd.html is the name of the file you want people to be redirected to.

You may change the number of second before the refresh begins. The number in RED below controls this:

<meta http-equiv="refresh" content="0;URL=class_wsd.html">

You can also change the filename/URL that will load. Again, it's in RED.

<meta http-equiv="refresh" content="0;URL=class_wsd.html">

Note that the content attribute has an unusual format. It has a double-quoted string argument, which is normal, but the contents of that argument are very exacting. The semicolon is required, and there's a sub-attribute URL=

0;URL=class_wsd.html

At this point, you should replace the body of the old page with a courtesy note with text similar to the following:

This page has moved. Please update your bookmarks and visit the new page:
class_wsd.html
The new page will load in a few seconds.
------------------------------------------------------------------------------
Most people use a special meta tag called "refresh" to direct their visitors to the new page. To do this you create a blank page which contains this tag (it is placed in the header). The tag simply says "wait a few seconds then go to a named page".

<META HTTP-EQUIV="refresh" content=
"1;URL=http://www.internet-tips.net/index.html">
This example waits one second, then loads the specified page into the browser.

If you do this, it's a good idea to wait at least 30 seconds and to include a link so the user can click if the browser does not go to the new URL for some reason.
---------------------------------
good luck
__________________
historical information links re uk and usa
http://www.ssrichardmontgomery.com
Reply With Quote
  #10 (permalink)  
Old 06-06-2008, 12:55 AM
pervezalam_mzn's Avatar
WebProWorld Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 33
pervezalam_mzn RepRank 1
Thumbs up Re: How do I implement 301 redirect with html?

hey go through these URL.

http://www.beyondink.com/howtos/301-redirect.php
How to Redirect a Web Page Using a 301 Redirect
301 Redirect - How to create Redirects


It will help you in easy way.




Pervez Alam
Reply With Quote
  #11 (permalink)  
Old 06-06-2008, 05:49 AM
DVDStar's Avatar
WebProWorld Member
 
Join Date: Mar 2008
Posts: 45
DVDStar RepRank 0
Default Re: How do I implement 301 redirect with html?

Thanks for all of your help so far people. I'm going through the responses bit by bit and will hopefully find a good solution.

Cheers
-----------------------------
<please add your link to your signature>

Last edited by crankydave; 04-09-2009 at 03:31 PM.
Reply With Quote
  #12 (permalink)  
Old 06-06-2008, 09:53 AM
Terry Van Horne's Avatar
WebProWorld Veteran
 
Join Date: Apr 2008
Location: Toronto On., Ca.
Posts: 471
Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4Terry Van Horne RepRank 4
Default Re: How do I implement 301 redirect with html?

Don't use the meta refresh tag it is an old spammers technique for bait and switch.
__________________
Follow me on Twitter! On the Trail with SOSG How I became a Social Media Convert and Twitter and Agents of Influence and now regular poster at Cloudmixer where We're Mixing New Media Ideas.
Reply With Quote
  #13 (permalink)  
Old 06-06-2008, 09:54 AM
WebProWorld Pro
 
Join Date: May 2008
Location: London, UK
Posts: 110
seopo RepRank 2seopo RepRank 2
Default Re: How do I implement 301 redirect with html?

Can't you just change the DNS of the old domain to point to your new website, then change your htaccess on your new site with your new host?
Reply With Quote
  #14 (permalink)  
Old 06-06-2008, 10:12 AM
WebProWorld Veteran
 
Join Date: Jul 2004
Posts: 913
activeco RepRank 2
Default Re: How do I implement 301 redirect with html?

Yes, you can use meta refresh as Ron Angel suggested in #9 (OK, you already implemented it).
However it is very strange demand from your hosting company as the enabling of .htaccess file is controlled by a single 'AllowOverride' directive in server configuration (your site is on Apache server).

I would suggest immediate migration to another hosting without much thinking.
__________________
Impossible? You just underestimate the time.
Reply With Quote
  #15 (permalink)  
Old 06-06-2008, 10:15 AM
WebProWorld New Member
 
Join Date: Apr 2008
Location: Arkansas
Posts: 23
BSmithTTS RepRank 0
Default Re: How do I implement 301 redirect with html?

It looks to me like you have the two domains hosted with different hosting companies. If this is indeed the case I would simply point my DNS for the old domain to my new host, set up a forwarded/add-on domain with that hosting, then set up my .htaccess file with the new hosting account to do all the redirects.

This way the old site never goes away (until your domain expires) giving you time to get the redirects listed in the search engines. And, you don't have to pay for two hosting accounts during this time.

You could even load the old site on the new domain just to make sure nothing looks different while the redirects take hold.

Of course, if you are using the same host and they do not allow you to go this route, then I would agree with others on here & go get new cheap hosting for the old domain (one that does allow .htaccess files)...

And I also agree that you might try calling the hosting company and speak to a manager. Give them the scoop on why you need this, etc. We do a lot of things with our hosts in developing client sites that are not "allowed" (usually for some random security policy/reason)... we just have to explain why we need it and most of the time they allow it (always on a case by case situation)...

Good Luck with this issue.
__________________
- Brian :: Website Design
Reply With Quote
  #16 (permalink)  
Old 06-06-2008, 11:55 AM
Tig's Avatar
Tig Tig is offline
WebProWorld Member
 
Join Date: Jul 2003
Location: Tacoma, WA
Posts: 43
Tig RepRank 0
Default Re: How do I implement 301 redirect with html?

We use the Meta refresh a lot, and it can help search engines. For instance, we will set it up this way:

<meta name="robots" content="noindex, follow" />
<meta http-equiv="refresh" content="0;URL=http://www.newurl.ext/filename.html" />

This tells the search engines that the page has moved, don't index the current page any more, and index the new page instead.

Good luck with it, there's no easy solution unfortunately.
__________________
I may disagree with what you say, but I will defend, to the death, your right to say it.
Daffodil Valley Times, Tacoma Web Designers, $3.99 Web Hosting
Reply With Quote
  #17 (permalink)  
Old 06-06-2008, 01:33 PM
Peter (IMC)'s Avatar
WebProWorld MVP
WebProWorld MVP
 
Join Date: Dec 2003
Posts: 1,485
Peter (IMC) RepRank 4Peter (IMC) RepRank 4Peter (IMC) RepRank 4Peter (IMC) RepRank 4
Default Re: How do I implement 301 redirect with html?

an htaccess file on your new hosting can simply redirect the old site to the new site. Just point the dns of the old site to the hosting of the new site and redirect in that htaccess file.
__________________
FREE SEO ! Really? YES! All you have to do is implement it!
Follow me on Twitter PeterIMC
Reply With Quote
  #18 (permalink)  
Old 06-08-2008, 08:37 AM
WebProWorld Member
 
Join Date: Feb 2004
Posts: 55
richard-s RepRank 1
Default Redirecting with no htaccess file

This old page explains how to provide a redirect when you are not able to use an htaccess file.

How to Construct Redirect Pages - Curlew Communications

Richard
Reply With Quote
  #19 (permalink)  
Old 06-08-2008, 09:22 PM
WebProWorld New Member
 
Join Date: Jun 2008
Posts: 6
nowreturn RepRank 0
Default Re: How do I implement 301 redirect with html?

html, can't implement 301,Client side can 't implement ,you must implement at Server side
Reply With Quote
  #20 (permalink)  
Old 06-09-2008, 06:01 AM
WebProWorld Member
 
Join Date: Aug 2004
Location: Wales UK
Posts: 55
Old Welsh Guy RepRank 2
Default Re: How do I implement 301 redirect with html?

I have to agree with some of the things above, apart from "I met a few folks from Google at a conference, and they recommended a 0 second meta refresh. They said it's not optimal, but it should work. You can google for the instructions."

Years ago maybe, but today that would possibly be seen as low level cloaking1 I certainly would not do that. the best IMo are
1. have a go at your current hosting company to provide HTaccess FOC.
2. Pay a few quid and buy some cheap hosting
3. if your new host will allow you to point multiple domains, then use the HTACCESS on the new domain to set up a 301 redirect match in the htaccess.
4. Lose the old domain.

4 is the ABSOLUTE LAST THING I would consider, As Terry VH pointed out, Google places great store on domain age, .

My recommended option would be to place a 301 redirect match from the old domain to the new domain. This will redirect any requests (search engine spiders included), to the coresponding page on the new domain with the instruction "hey mister search engine, remove the page you asked for and replace it with this new page as it is the new home of the page you visited). While not perfect, it is as good as you will get to ensure that there is minimal disruption to your rankings.

The beauty of redirect match (only really viable if the new structure is the same as the old structure and only th domain name element of the url has changed), is that the search engines can see at a glance that in fact it is simply a change of domain name and nothing else. This will allow the trust factor to be transferred to the new domain.
__________________
Internet Marketing Consultancy - SEO Agony Uncle - Web Design Wales in browser self edit websites
Reply With Quote
  #21 (permalink)  
Old 06-09-2008, 10:56 AM
WebProWorld New Member
 
Join Date: Jun 2008
Posts: 23
dubbing RepRank 0
Default Re: How do I implement 301 redirect with html?

I would like to know if its possible to re-direct any/all pages from one domain to another ?

For e.g www.123.com is re-directing to www.986.com

in this case is it possibly to re-direct www.123.com/1.htm & other such sub-pages to main site (986.com) ...basically no error 404 should appear for any page for 123.com


Which is the best method to do such re-directions.


Thanks

Last edited by dubbing; 06-09-2008 at 11:04 AM.
Reply With Quote
  #22 (permalink)  
Old 06-14-2008, 07:56 AM
WebProWorld Member
 
Join Date: Mar 2007
Posts: 50
luigip RepRank 1
Default Re: How do I implement 301 redirect with html?

dubbing try this:

RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.123\.com$
RewriteRule ^(.*)$ http://www.986.com/$1 [L,R=301]
__________________
Wetter - Regenradar
Reply With Quote
  #23 (permalink)  
Old 06-22-2008, 05:56 PM
WebProWorld New Member
 
Join Date: Jun 2008
Posts: 23
dubbing RepRank 0
Default Re: How do I implement 301 redirect with html?

thanks....

I would like to if this method of 301 re-direct is advisable for someone having multiple keywords directing to main site?

if yes...whats the total # cap (if any) to such re-directs so that it doesnt fall under spam

if no...then which method would you suggest
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
301 redirect from .html to .asp PaulMycroft IT Discussion Forum 3 02-21-2008 07:35 AM
301 Redirect from HTML to PHP garywhw Search Engine Optimization Forum 3 01-23-2007 02:31 AM
HTML Redirect Pages bobitza Search Engine Optimization Forum 2 04-20-2006 06:04 PM
How do I implement a look up table ? uk2usa Web Programming Discussion Forum 5 04-05-2005 09:23 AM
How to Redirect .php pages to .html page? How to continue sa Rohit_Malhotra Google Discussion Forum 3 10-21-2004 02:21 AM


All times are GMT -4. The time now is 05:31 PM.



Search Engine Optimization by vBSEO 3.3.0