![]() | | ||||||||
| | #1 |
| Senior Warrior Member War Room Member Join Date: Mar 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
|
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 |
| | |
| | |
| | #2 |
| DomainProfitsClub.com War Room Member Join Date: Feb 2007 Location: Oswego, NY USA
Posts: 2,990
Blog Entries: 1 Thanks: 946
Thanked 1,639 Times in 652 Posts
|
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> Code: <?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.INSERT_YOUR_URL_HERE.com/page.html");
exit();
?> |
| | |
| | |
| | #3 |
| Senior Warrior Member War Room Member Join Date: Mar 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
|
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 |
| | |
| | |
| | #5 |
| Senior Warrior Member War Room Member Join Date: Mar 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
|
Gene - just sent a PM - many thanks Kevin |
| | |
| | |
| | #6 |
| Senior Warrior Member War Room Member Join Date: Mar 2004 Location: Manchester, UK . . .but I would rather be elsewhere!
Posts: 1,449
Thanks: 34
Thanked 35 Times in 28 Posts
|
Excellent - its now working!
|
| | |
| | |
| | #8 |
| Mark Winder Join Date: May 2008 Location: Vancouver, Canada.
Posts: 37
Thanks: 4
Thanked 8 Times in 6 Posts
|
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? | |
| | |
| | #9 |
| HyperActive Warrior Join Date: Jul 2008 Location: , , Canada.
Posts: 116
Thanks: 1
Thanked 4 Times in 4 Posts
|
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! | |
| | |
![]() |
|
| Tags |
| html, redirect, working |
| Thread Tools | |
| |
![]() |