Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Using RewriteRules to tell Textpattern Hands-off...
I have two systems for a site I am currently doing txp is handling the public side website content and a Java-based application handling the backend once you log in to your site account. Any thing that is in the /javabased/ directory is passed over to the java backend and I don’t want txp handling the urls anymore. The problem comes because /javabased/ isn’t an actual directory so the normal txp RewriteRules don’t apply.
Could someone help me figure out a way to tell Textpattern that anytime the url has /javabased/ in it to stop handling the urls? I tried a rule like this, RewriteRule ^/javabased/$ - [L]
but it didn’t work. I tried it above and below txp’s rules
Last edited by tinyfly (2007-03-30 02:50:27)
Refresh Dallas and other Refreshing Cities.
Offline
Re: Using RewriteRules to tell Textpattern Hands-off...
Try placing the following in a new (or existing) .htaccess file in the javabased directory:
<IfModule mod_rewrite.c>
RewriteEngine off
</IfModule>
Offline
Re: Using RewriteRules to tell Textpattern Hands-off...
That’s the whole problem. There isn’t a real /javabased/ directory just like there isn’t a real /articles/ directory in textpattern.
Refresh Dallas and other Refreshing Cities.
Offline
Re: Using RewriteRules to tell Textpattern Hands-off...
Try adding this above TXP’s RewriteCond lines in .htaccess:
RewriteCond %{REQUEST_URI} !^\/javabased [OR]
Or add this just above the last TXP RewriteRule:
RewriteCond %{REQUEST_URI} !^\/javabased
Last edited by ruud (2007-03-29 22:37:05)
Offline
Re: Using RewriteRules to tell Textpattern Hands-off...
Great Ruud! It works perfectly on my local machine and I imagine it will do great on my client’s production server.
Refresh Dallas and other Refreshing Cities.
Offline