Want to make mod_rewrite ignore certain urls

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Tygur
Posts: 4
Joined: Sat Feb 04, 2006 8:35 am

Want to make mod_rewrite ignore certain urls

Post by Tygur »

On my site, Serendipity is not in a subdirectory, so if you go to mysite.com, serendipity opens right up. Unfortunately, this, combined with the fact that I'm using mod_rewrite, means that if I create a subdirectory and try to go to it (for example, mysite.com/coolstuff), I instead get the main Serendipity page. How do I prevent this?

I thought about editing .htaccess myself, but I wonder if maybe Serendipity might need full control over the file's contents, or else bad things could happen the next time I change settings in the admin pages. Maybe I should just not bother worrying, go ahead, and edit it anyway?

Yes, I know there are plugins for static pages, but I want to put a php script there, and I want it to send its output straight to the browser when requested.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Want to make mod_rewrite ignore certain urls

Post by garvinhicking »

Hi!

This is documented in the FAQ on www.s9y.org, please have a look. Keyword "RewriteEngine Off". :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Tygur
Posts: 4
Joined: Sat Feb 04, 2006 8:35 am

Post by Tygur »

Thank you.

I'm a little bit embarassed that I didn't check the FAQ. I searched the forums, but I forgot about the FAQ for some reason. I also wish it had actually occurred to me to just go ahead and put a separate .htaccess file in the subdirectory as the FAQ recommends. Whatever the case, it's working now. Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You're welcome; that's what we're here for. Even if its just pointing at the FAQ ;)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply