.htaccess question
#1
Scooby Newbie
Thread Starter
Join Date: Jun 2004
Location: Manc
Posts: 17
Likes: 0
Received 0 Likes
on
0 Posts
.htaccess question
I have two urls pointing to the same place. e.g. www.firsturl.co.uk and www.secondurl.co.uk both look at the same index.html.
How do get the www.secondurl.co.uk to look somewhere else for its index.html e.g. to www.thirdurl.co.uk or a directory ?
How do get the www.secondurl.co.uk to look somewhere else for its index.html e.g. to www.thirdurl.co.uk or a directory ?
#2
Scooby Regular
This isn't .htaccess, this is virtualhosting. To have a separate DocumentRoot/DirectoryIndex (I'm assuming you're using Apache since you mention .htaccess) then you'll need to set up both sites in their own virtual hosts.
#5
Scooby Regular
You need to know Apache and have access to the server config. Or, if you can
get a copy of the relevant parts of the config and supply the changes you need,
I can just paste it in here.
get a copy of the relevant parts of the config and supply the changes you need,
I can just paste it in here.
#6
Scooby Newbie
Thread Starter
Join Date: Jun 2004
Location: Manc
Posts: 17
Likes: 0
Received 0 Likes
on
0 Posts
I don't have access to the server config. It's just two domains hosted by a domain hosting company, both of which point to the same directory on their server. I have ftp access.
Trending Topics
#8
Scooby Newbie
Thread Starter
Join Date: Jun 2004
Location: Manc
Posts: 17
Likes: 0
Received 0 Likes
on
0 Posts
The problem is THEY won't change it unless I pay them a huge wodge of extra cash to use their webforwarding service. Ridiculous when you consider that most domain registration companies do it for next to nothing.
#10
Scooby Senior
iTrader: (1)
Join Date: Nov 2000
Location: Wildberg, Germany/Reading, UK
Posts: 9,706
Likes: 0
Received 73 Likes
on
54 Posts
Originally Posted by Rudi-Boy
The PHP method worked.
Thank you everyone for all your help, and especially Wurzel for all the offline help.
Thank you everyone for all your help, and especially Wurzel for all the offline help.
Thread
Thread Starter
Forum
Replies
Last Post
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM