Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-06-03 10:43:15
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
400 bad request
i have a clean install of txp latest version at domain.com/dynamic. When i go to that url i get a “400 bad request” error. When i go to dynamic/index.php i see my site
when i click on the title of one of the articles i also get a 400 bad request error. the link to the full article is in the following format: http://www.domain.com/dynamic/section_name/4/another-test.
the content of my .htaccess file under /dynamic/ is below. im pretty sure this is what txp placed there.
does anyone know what causes this 400 error? is it possible that an .htaccess file outside of txp root is causing this?
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
(Edit: updated to display .htaccess code properly. :) -Mary)
Last edited by Mary (2006-06-03 12:04:52)
I need someone to protect me from all the measures they take in order to protect me
Offline
#2 2006-06-03 12:06:42
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: 400 bad request
Usually that means there is something in your .htaccess that the server does not understand.
is it possible that an .htaccess file outside of txp root is causing this?
Yes, it is possible for an .htaccess file in your root directory to be mucking things about. Is there one there?
Offline
#3 2006-06-03 13:04:07
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: 400 bad request
yes, there was an .htaccess file in the root but i deleted it and the same problem still exists
should i contact my hosting company?
I need someone to protect me from all the measures they take in order to protect me
Offline
#4 2006-06-03 13:10:43
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: 400 bad request
actually i spoke to soon. when i delete the .htaccess file that has the code in my OP, the site does show up in /dynamic/ – that works. however, clicking on the article titles now gives a 404 …
I need someone to protect me from all the measures they take in order to protect me
Offline
Re: 400 bad request
http://textpattern.com/faq/66/404-error-when-linking-to-article-pages
It’s possible that at your hoster mod_rewrite is not installed, or that customers aren’t allowed to use it, or that .htaccess files are disallowed. There’s lots of reasons why it’s possible someone can’t use clean urls.
If – after reading the above faq – you still can’t get clean urls to work, then you can use either messy urls as explained. Or you can try out this:
http://textpattern.com/weblog/135/partly-messy-clean-urls-without-modrewrite-experimental
Offline
#6 2006-06-03 13:36:00
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: 400 bad request
its def a problem with the .htaccess because when i choose to display messy url’s, everything works
so am i correct in saying that the code in my original post is created by textpattern to display clean url’s, but the hosting company has configured something in a way that makes this code not work?
I need someone to protect me from all the measures they take in order to protect me
Offline
#7 2006-06-03 13:42:31
- stef25
- Member
- Registered: 2005-12-26
- Posts: 88
Re: 400 bad request
Sencer, your first link suggested to uncomment and adjust the RewriteBase line. i changed that to RewriteBase /dynamic/ – it now works
thanks
I need someone to protect me from all the measures they take in order to protect me
Offline
Re: 400 bad request
Glad to hear that. So, the FAQs are good for something. ;)
Offline
Pages: 1