Page 1 of 1

Want to make mod_rewrite ignore certain urls

Posted: Sat Sep 02, 2006 7:23 am
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.

Re: Want to make mod_rewrite ignore certain urls

Posted: Sat Sep 02, 2006 12:52 pm
by garvinhicking
Hi!

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

Best regards,
Garvin

Posted: Sat Sep 02, 2006 6:24 pm
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.

Posted: Sat Sep 02, 2006 8:08 pm
by garvinhicking
Hi!

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

Best regards,
Garvin