Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-22 11:44:44

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

#3 2006-07-24 11:40:23

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

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

Board footer

Powered by FluxBB