Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-16 09:53:11

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

How to use two textpattern installations in / and /subfolder?

I’m having the following issue: I want to “archive” an existing site and move it to a subfolder. Therefore, I’ve installed a fresh textpattern copy into a subfolder and then wanted to use an mysql dump of the existing site for it. However, the installations seem to conflict with each other. When I try to reach the new installed txp in /subfolder it returns a 404 not found from the existing site. So in short: what do I have to change in .htaccess to be able to run one txp installation from the root and another one from the subfolder?

Offline

#2 2007-03-16 13:16:45

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: How to use two textpattern installations in / and /subfolder?

Substitute:

 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

with:

 RewriteEngine On
 RewriteCond %{REQUEST_URI} ^/subdir [OR]
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

Offline

#3 2007-03-16 13:20:55

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: How to use two textpattern installations in / and /subfolder?

i tried that but it’s not working… any ideas?

Offline

#4 2007-03-16 13:25:33

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: How to use two textpattern installations in / and /subfolder?

It’s working on my site. :-/

Offline

#5 2007-03-16 14:14:15

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: How to use two textpattern installations in / and /subfolder?

Usually you don’t have to change anything.

Make sure you that
a) you have another .htaccess in the subfolder
b) the config,php values are correct.
c) try out with a fresh install, before you import anything. If you make an import, make sure you adapt the paths.

If you are still having problems, post the diagnostics of the subfolder install.

Offline

#6 2007-03-16 14:23:08

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: How to use two textpattern installations in / and /subfolder?

Sorry, guys — it was me being stupid. I forgot to adapt the htaccess in the subfolder… Everything is working now.

Offline

Board footer

Powered by FluxBB