Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: How to use two textpattern installations in / and /subfolder?
i tried that but it’s not working… any ideas?
Offline
Re: How to use two textpattern installations in / and /subfolder?
It’s working on my site. :-/
Offline
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
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