View Full Version : Redirecting .html page
Jan
October 12th, 2007, 16:42
Is it possible to redirect a single html page to a domain? I have a particular page that has been steadily popular for years and just out of curiosity, I checked if a domain name directly related was available, and there is!
Decker
October 12th, 2007, 17:27
Do you need to redirect that 'one' page only Jan?
Jan
October 12th, 2007, 17:44
Yep, just the one page.
Decker
October 12th, 2007, 17:48
Would it ruin it if your navigation was wrapped around the page in it's origional location and that would mean you would return on navigating back from that page?
Or would 'that' page then be detached from the rest of the site it's currently part of?
(trying to get a feel for options :) )
Jan
October 12th, 2007, 18:04
Can you rephrase that into Australian? or even English will do :p
Decker
October 12th, 2007, 18:09
Cheeky :P
Okay what type of pages - are they html, blog, cms, etc?
Trying to find out about the return path, getting there is easy getting back from another site would be the tricky bit :-)
Darknight
October 12th, 2007, 19:01
From what i understood you want to redirect traffic from a page to a domain?
http://www.billstclair.com/html-redirect2.html that explains that but Im not sure if thats what your asking.
Decker
October 12th, 2007, 19:07
Tempted to make a comment but Jan would make sure I live to regret it :P
That's okay for a one way redirect (push to another site or page), but I'm reading 'embedding' one page from another domain, which would still have to fit with site nav - please god correct me if I'm wrong!
Jan what are the site and page?
Jan
October 12th, 2007, 19:36
From what i understood you want to redirect traffic from a page to a domain?
http://www.billstclair.com/html-redirect2.html that explains that but Im not sure if thats what your asking.
That works! I did a test page and it redirected to another domain :beer:
* Jan goes to register the domain
Darknight
October 12th, 2007, 19:44
Ok, but thats not the best way to do it so iv heard, And I just read another site that thinks the same. heres another method
http://www.webweaver.nu/html-tips/web-redirection.shtml
It uses the .htaccess thinggy that iv never played with to much
Decker might have more ideas I dont know.
Decker
October 12th, 2007, 19:59
I'm more concerned with getting back again to the origionating page if required seemlessly - but if it's just a one way thing, just change the link in the navigation ?!?
Jan goes for the basics - gotta luv her :D
Go on Jan throw us a crumb :)
Jan
October 12th, 2007, 21:14
Ok, but thats not the best way to do it so iv heard, And I just read another site that thinks the same. heres another method
http://www.webweaver.nu/html-tips/web-redirection.shtml
It uses the .htaccess thinggy that iv never played with to much
Decker might have more ideas I dont know.
Even better! All done and dusted and working like a dream! PR3 to 0 in a flash :D
Decker
October 12th, 2007, 21:40
PR3 to 0 in a flash :D
:eek3: Whaaa!
Darknight
October 12th, 2007, 22:14
What? Would you care to explain that abit more clearler?
The .htaccess idea is ment to be more SEO friendly then the html redirection idea... Im confused on what your saying.
But either way theres no way your pr3 domain is going to hit 0 just becuse you redirect anything -_- unless your redirecting the index page of that domain....
Mabye you need to start talking in australian :P
I think you mean your new domain is PR0 and old one where the page used to be was PR3?
Jan
October 13th, 2007, 01:00
I think you mean your new domain is PR0 and old one where the page used to be was PR3?
Correct :) olddomain.com/page.html was PR3. loading that up, it goes to a brand spanking new domain :)
krakjoe
October 13th, 2007, 04:52
FYI : Meta redirects do not put out the correct headers for you to retain PR on the new domain... you should use .htaccess directives to tell HTTP clients that the content has moved permanently ...
Decker
October 13th, 2007, 13:09
Phew :P
themoose
October 13th, 2007, 13:38
Jan, I'd do this instead (for the same reasons as what joe said)
index.php:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourdomain.com/");
exit;
?>
Make sure there's no spaces or whitespace before <?php otherwise it won't work.
Darknight
October 13th, 2007, 14:21
From what I Understand she went with the .htaccess idea wich should be fine, Its not a php file so that would involve changing it to .php and updating anylinks it would also screw up google.. becuse it would no longer find the .html page that it has allready indexed.
Also thats good I thought for a min mabye you lost a pr3 lol
themoose
October 13th, 2007, 14:39
Oh, my bad, I should read the whole thread in future :p
Decker
October 13th, 2007, 15:02
Also thats good I thought for a min mabye you lost a pr3 lol
That's what I thought too :eek3: trust Secret Squirrel aka Jan to leave us to work out the tricky bits :P and tut tut Colin how unlike yourself, go to the corner :lol: (I was starting to feel this was a baiting thread so don't feel bad Colin, Jan should be ashamed for what she did to you!)
Darknight
October 14th, 2007, 02:42
That's what I thought too :eek3: trust Secret Squirrel aka Jan to leave us to work out the tricky bits :P and tut tut Colin how unlike yourself, go to the corner :lol: (I was starting to feel this was a baiting thread so don't feel bad Colin, Jan should be ashamed for what she did to you!)
Wow, Your 44? (Sorry for going offtopic) :fangel:
Oh, my bad, I should read the whole thread in future :p
Why dont you start with the longest thread ever lol... :D
that would be fun!
Jan
October 14th, 2007, 03:11
Also thats good I thought for a min mabye you lost a pr3 lol
I did in a way :) While the page is pointed to the domain, it is 0.
Decker
October 14th, 2007, 03:24
Wow, Your 44? (Sorry for going offtopic) :fangel:
Cheeky git, just hope you survive this long :P
I did in a way :) While the page is pointed to the domain, it is 0.
If anyone ever works out Googles PR will you wake me up?
Darknight
October 14th, 2007, 03:53
Cheeky git, just hope you survive this long :P
If anyone ever works out Googles PR will you wake me up?
Wasnt so much being checky Just didnt relise you looked like this: oldman2
(Dont take any offence to that, Im only joking)
J/K But I really never thought you was 44 possibly like 30 something.
And yeah its kinda confusing I agree.. I dont try and work it out anymore :devious2:
Decker
October 14th, 2007, 04:29
No offence taken :) you get to be this old and you accept stuff :D
But I really never thought you was 44 possibly like 30 something.
:beer: :lol:
krakjoe
October 14th, 2007, 04:45
From what I Understand she went with the .htaccess idea wich should be fine, Its not a php file so that would involve changing it to .php and updating anylinks it would also screw up google.. becuse it would no longer find the .html page that it has allready indexed.
Also thats good I thought for a min mabye you lost a pr3 lol
Because it's only one file, .htaccess is the best way to do it ... however, if you're moving a whole site or you're changing the structure of a site, it's common practice to use a rewrite to a php script that can forward you to the correct content ( because the php can connect to a database / scan a filesystem to find the new content ). Just thought I'd say...
Darknight
October 15th, 2007, 00:41
Because it's only one file, .htaccess is the best way to do it ... however, if you're moving a whole site or you're changing the structure of a site, it's common practice to use a rewrite to a php script that can forward you to the correct content ( because the php can connect to a database / scan a filesystem to find the new content ). Just thought I'd say...
Yes, Colins idea is a great idea. I was just pointing out that its prob not the best for what Jan wanted to do.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.