Forum Moderators: phranque
I have a website which uses rewrite rules. I have installed now a blog under /blog/ directory. Blog uses its own htaccess for SE friendly URLs. So i have written the following rule in my main site htaccess as the first rule,
RewriteRule ^blog/*$ /blog/$1 [L]
now the main website rules works fine but the blog urls give 500 internal server error.
any help is highly appreciated.
thank you
In addition, the rule in the first post internally rewrites requests for "/blog" followed by and ending with any number of slashes, to "/blog/" followed by an undefined path. Again, this is not likely what was intended, and at best, would rewrite "/blog/" to itself, creating an infinite loop.
Jim
If that code is in example.com/.htaccess it shouldn't do anything at all.
When you get a 500-Server Error, go look at your server error log; It's often quite helpful.
Jim
RewriteRule ^blog/ - [L]
Jim
[edited by: jdMorgan at 10:05 pm (utc) on April 21, 2008]