Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-29 21:36:27

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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)

Offline

#2 2007-03-29 22:07:58

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#3 2007-03-29 22:13:14

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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.

Offline

#4 2007-03-29 22:35:06

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#5 2007-03-30 03:14:41

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

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.

Offline

Board footer

Powered by FluxBB