Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
multiple web sites and .htaccess
Anyone know about the .htaccess file and cool things you can do with it?
I want to run a second domain name from my server, while retaining the URLs as they currently exist.
jameslomax.com is on one server, lakelandphotos.com is on another server, and I want to transfer lakeland to james but – as I say – retainin the exisiting URLs for lakeland.
I’ve had this advice from my host:
“It is possible for you to add a .htaccess file to your root directory to direct visitors to other parts of your hosting account if proffered.”
Presumably, this means a piece of code that says something like <code>if http://www.lakeland.com then http://www.jameslomax.com/lakes</code>
However, I dont understand if that kind of proceedure would maintain the existing URLs.
Does anyone run multiple sites on the same server, maintaining the URL integrity for each one?
Offline
#2 2006-07-22 18:27:21
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: multiple web sites and .htaccess
The simplest way to handle this is if your host permits addon domains. This lets you add a domain name to your account space and store the files for said domain in a sub-directory. People going to this domain will not see where it is hosted – it will act normally.
As for the example, you can do it that way, it’s simple redirection often used for parked domains, and if you retain the directory structure for the second domain under the /lakes subdirectory it will work, but the browser will show the jameslomax/lakes/ in front of the rest of the URL.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: multiple web sites and .htaccess
OK thanks; I’ll check with my host.
The htaccess option is no good for me, because I want to retain URL integrity.
Offline
Pages: 1