.htaccess 400 error
Posted: Thu Feb 26, 2009 10:54 am
Hey all,
I'm not sure if this is the right category for this but htaccess files use regex so I thought about doing it here. I'm making a CMS where every file goes through my template code.
My .htaccess file looks like this:
Options +FollowSymlinks
RewriteEngine on
RewriteRule . control.php [L]
It works well for almost everything you can try it at: http://lawfirmsites.com/clondon/ or http://lawfirmsites.com/clondon/index or http://lawfirmsites.com/clondon/test
It all works perfectly except for one url: http://lawfirmsites.com/clondon (Note the lack of a trailing slash). It gives me a 400 Bad Request error. Anybody know how I can correct this? Thanks in advance!
I'm not sure if this is the right category for this but htaccess files use regex so I thought about doing it here. I'm making a CMS where every file goes through my template code.
My .htaccess file looks like this:
Options +FollowSymlinks
RewriteEngine on
RewriteRule . control.php [L]
It works well for almost everything you can try it at: http://lawfirmsites.com/clondon/ or http://lawfirmsites.com/clondon/index or http://lawfirmsites.com/clondon/test
It all works perfectly except for one url: http://lawfirmsites.com/clondon (Note the lack of a trailing slash). It gives me a 400 Bad Request error. Anybody know how I can correct this? Thanks in advance!