Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
how to get clean urls from root directory, but not subdirectories
Is there a way to use clean urls but also have other subdirectories that are not part of txp site?
Previously I had to use messy urls, because if I turned on clean urls, my other directories on my domain became inaccessible (if you tried to go to one you’d get the main txp front page). I have several directories in my domain that aren’t part of txp, but I’d like to use clean urls and not have that interfere with those “true” directories.
Rayne
Rayne
mama love
Offline
#2 2007-05-11 01:00:00
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: how to get clean urls from root directory, but not subdirectories
The .htaccess file should allow for non-Txp directories, but if it doesn’t you can try adding the following to a second .htaccess file and place it in each non-Txp directory:
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
.htaccess “cascades” so you only have to add it to a folder and it applies to all sub-folders as well.
Offline