View Full Version : HTAccess?
Recursion
06-07-2007, 09:16 AM
Hello,
What code would I put in a .htaccess file to redirect www.DOMAIN.tld/forum (http://www.DOMAIN.tld/forum) to www.forum.DOMAIN.tld (http://www.forum.DOMAIN.tld) ?
Thanks
Tom
Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks :).
Create a .htaccess file with the code below. The .htaccess file needs to be in your root directory preferably where your index page is
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.NEWDOMAIN.COM/$1 [R=301,L]
change NEWDOMAIN.COM with your new domain you wish to link to.
This method only works on linux servers tho.
today
06-07-2007, 11:41 AM
then its abit rubbish ^^ lol.
use cpanel redirect page, does it for you.
ScottDiamond
06-07-2007, 11:48 AM
then its abit rubbish ^^ lol.
use cpanel redirect page, does it for you.
And cPanel redirect page isn't rubbish? Deary me. What propaganda do they pipe into you?
Cpanel's one your hardly even realise its redirecting
ScottDiamond
06-07-2007, 02:42 PM
Cpanel's one your hardly even realise its redirecting
Oh no. Oh no. Oh no.
Dentafrice,
06-07-2007, 02:44 PM
<?
header("Location: http://bob.com");
?>
RYANNNNN
06-07-2007, 03:28 PM
DUB's code is best.
If you cannot get the .htaccess code to work try this:
Make a file called index.html in the /forum directory and add this line in your head.
<meta http-equiv="refresh" content="0;URL=www.forum.DOMAIN.tld">
that isn't what he's asking though. .htaccess is much more efficient
Jamie.
15-07-2007, 10:23 AM
What exactly you after :P set up a subdomain so its still got all the files n shizzle so like set it up as forum.domain.tld which then goes into domain.tld/forum
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.