Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 02-14-2009, 09:31 AM   #1
Senior Warrior Member
War Room Member
 
Kevin Birch's Avatar
 
Join Date: Mar 2004
Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
Contact Info
Send a message via Skype™ to Kevin Birch
Default html redirect not working

Hi guys

I'm tearing my hair out (not that there is much left to tear out), but I can't get a simple redirect working.

The html is correct (at least I think it is) but when the url is typed to be redirected it displays an index page with my index.html file shown as a link.

Anyone?

Kevin

Owing to hackers - signature is temporarily retired
Kevin Birch is offline   Reply With Quote
Old 02-14-2009, 10:17 AM   #2
DomainProfitsClub.com
War Room Member
 
Gene Pimentel's Avatar
 
Join Date: Feb 2007
Location: Oswego, NY USA
Posts: 2,990
Blog Entries: 1
Thanks: 946
Thanked 1,639 Times in 652 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Re: html redirect not working

Hi Kevin,

For a simple redirect, here is the html code you need to name index.html (or index.htm).

Code:
<html>
<head>
<meta http-equiv="refresh" content="0; url=http://www.INSERT_YOUR_URL_HERE.com/page.html"> 
</head>
</html>
However, that is not the best way to redirect. You're better off (for SEO reasons) to name your redirect index.php and use this PHP code:

Code:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.INSERT_YOUR_URL_HERE.com/page.html");
exit();
?>

Gene Pimentel is offline   Reply With Quote
Old 02-14-2009, 10:31 AM   #3
Senior Warrior Member
War Room Member
 
Kevin Birch's Avatar
 
Join Date: Mar 2004
Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
Contact Info
Send a message via Skype™ to Kevin Birch
Default Re: html redirect not working

Hi Gene - yup - thats exactly what I did, but I still get the index/ page shown. I even changed permissions on the folder to see if that would help!

There ain't any htaccess file in the folder that may be stopping the redirect

Owing to hackers - signature is temporarily retired
Kevin Birch is offline   Reply With Quote
Old 02-14-2009, 10:38 AM   #4
DomainProfitsClub.com
War Room Member
 
Gene Pimentel's Avatar
 
Join Date: Feb 2007
Location: Oswego, NY USA
Posts: 2,990
Blog Entries: 1
Thanks: 946
Thanked 1,639 Times in 652 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Re: html redirect not working

Quote:
Originally Posted by kevinb View Post
Hi Gene - yup - thats exactly what I did, but I still get the index/ page shown. I even changed permissions on the folder to see if that would help!

There ain't any htaccess file in the folder that may be stopping the redirect
Kevin, if you'll PM me the URL, I'll be glad to take a look...

Gene Pimentel is offline   Reply With Quote
Old 02-14-2009, 10:41 AM   #5
Senior Warrior Member
War Room Member
 
Kevin Birch's Avatar
 
Join Date: Mar 2004
Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
Contact Info
Send a message via Skype™ to Kevin Birch
Default Re: html redirect not working

Gene - just sent a PM - many thanks

Kevin

Owing to hackers - signature is temporarily retired
Kevin Birch is offline   Reply With Quote
Old 02-14-2009, 11:21 AM   #6
Senior Warrior Member
War Room Member
 
Kevin Birch's Avatar
 
Join Date: Mar 2004
Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
Contact Info
Send a message via Skype™ to Kevin Birch
Default Re: html redirect not working

Excellent - its now working!

Owing to hackers - signature is temporarily retired
Kevin Birch is offline   Reply With Quote
Old 02-14-2009, 11:24 AM   #7
DomainProfitsClub.com
War Room Member
 
Gene Pimentel's Avatar
 
Join Date: Feb 2007
Location: Oswego, NY USA
Posts: 2,990
Blog Entries: 1
Thanks: 946
Thanked 1,639 Times in 652 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Re: html redirect not working

Awesome! Glad it worked.

Gene Pimentel is offline   Reply With Quote
Old 02-14-2009, 01:38 PM   #8
Mark Winder
 
markwinder's Avatar
 
Join Date: May 2008
Location: Vancouver, Canada.
Posts: 37
Thanks: 4
Thanked 8 Times in 6 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to markwinder
Default Re: html redirect not working

Hey guys - one other work-around that I've used in the past is to either use the redirect feature in C-Panel or to set up a sub-domain and have it forwarded to the desired link.

I'm guessing there could be some SEO issues at stake here, but it gets the job done when my PHP decides not to work (which, thankfully it does most of the time!)

And thanks for the tips there, Gene!

- Mark.

======================================
Mark Winder
Sales Consultant & JV Manager

Interested in Earning Tier 2 JV Commissions?
markwinder is offline   Reply With Quote
Old 02-14-2009, 02:55 PM   #9
HyperActive Warrior
 
Join Date: Jul 2008
Location: , , Canada.
Posts: 116
Thanks: 1
Thanked 4 Times in 4 Posts
Default Re: html redirect not working

I'm still not into using the PHP redirect as it was left out of FireFox a few versions back. Haven't checked yet if they fixed it or not.

Check out my WSO for 60% off my autoresponder, Bulk Mailer, Opt In Software.
60% OFF Mail List Management Software! Multiple List Capabilities!
snidge is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
html, redirect, working

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 01:15 AM.