Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-20 12:16:18

spgriffee
Member
Registered: 2004-12-21
Posts: 38
Website

Second Textpattern installation in subfolder of domain

Say I have a Textpattern-driven website on domain.com.

I want a second, isolated Textpattern-driven site using its own separate database in domain.com/secondsite/.

Are there any conflicts or problems I should be aware of or can I just go ahead and put the second Textpattern installation in the /secondsite/ subfolder?

Cheers!
Simon

Offline

#2 2009-06-20 12:26:37

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Second Textpattern installation in subfolder of domain

I should think you’d need to modify the .htaccess in domain.com/ (I don’t know what changes are needed, sorry).

Gocom wrote:

I should think you won’t. Child .htaccess file lower in the system’s file tree should redefine conditions defined in the parent .htaccess, so it should load the correct index.php. Depends on the Apache setup tho. Note that with out clean url there will be no hickups nor conflicts (no htaccess conflicts nor possible file path conflicts).

Good to know! Sorry for bad info.

Last edited by jsoo (2009-06-20 15:13:05)


Code is topiary

Offline

#3 2009-06-20 14:51:07

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Second Textpattern installation in subfolder of domain

jsoo wrote:

I should think you’d need to modify the .htaccess in domain.com/ (I don’t know what changes are needed, sorry).

I should think you won’t. Child .htaccess file lower in the system’s file tree should redefine conditions defined in the parent .htaccess, so it should load the correct index.php. Depends on the Apache setup tho. Note that with out clean url there will be no hickups nor conflicts (no htaccess conflicts nor possible file path conflicts).

Offline

#4 2009-06-20 16:53:08

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Second Textpattern installation in subfolder of domain

Just don’t create a section in your root install with the same name as the subdirectory… :)

Offline

#5 2009-06-21 11:58:45

spgriffee
Member
Registered: 2004-12-21
Posts: 38
Website

Re: Second Textpattern installation in subfolder of domain

Thank you for the replies. I’m thinking clean URLs will work, too, as long as Apache is set up properly and I follow Els’ tip.

Offline

Board footer

Powered by FluxBB