400 bad request

phpBB SEO Premod for phpBB3 support forum.
This premodded version of phpBB3 includes the three different type of URL rewriting for phpBB3 by phpBB SEO. It comes with several other Search Engine Optimization mods installed.

Moderator: Moderators

400 bad request

Postby vigge_sWe » Mon May 05, 2008 3:20 pm

ok I have something rare now. Whn I upgraded from 3.0.0 premod to 3.0.1 premod I noticed something must been updated with the .htaccess section because everything was 404. So I went to the .htaccess and all I get is a 400 bad request. The fun thing is, it's not the default servers error message since the admin can't see me triggering it so it must be a phpBB thingy. So what should I do?
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Advertisement

Postby dcz » Tue May 06, 2008 1:24 pm

You mean, you get the 400 in ACP while trying to generate an .htaccess or everywhere after you actually updated the .htaccess ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21429
Joined: Fri Apr 28, 2006 9:03 pm

Postby vigge_sWe » Tue May 06, 2008 2:34 pm

dcz wrote:You mean, you get the 400 in ACP while trying to generate an .htaccess or everywhere after you actually updated the .htaccess ?


No. But anyway I fixed it becaus I found the .htaccess generated in the phpbb_seo folder. Btw, it has a bug... You have forgot "Rewritengine on" in it so I needed to add that.
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby vigge_sWe » Tue May 06, 2008 3:02 pm

or actually, the "new posts" , "active topics" and "unanswered posts" don't work...
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby vigge_sWe » Wed May 07, 2008 2:03 pm

so how to fix them? what should I put in my .htaccess so they work?

My current .htaccess:

Code: Select all
# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - MIXED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^messages/([^/]+)/?(page([0-9]+)\.html)?$ /search.php?author=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)\.html)?$ /viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby SeO » Thu May 08, 2008 10:45 am

vigge_sWe wrote:You have forgot "Rewritengine on" in it so I needed to add that.


I don't think so. But the .htaccess you posted seems to be meant for 3.0.0, not for 3.0.1, make sure that includes/acp/phpbb_seo.php is up to date and re generate an .htaccess.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby vigge_sWe » Sun May 11, 2008 4:00 pm

I uploaded the newest ACP module and added it again but it still don't work...
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby vigge_sWe » Sun May 11, 2008 4:14 pm

And last time I checked, There was a working .htaccess in the phpbb_seo folder. now when I choose advanced the .htaccess file in phpbb_seo got:

<Files cache/*>
Order Allow,Deny
Deny from All
</Files>
<Files "phpbb_seo_class.php">
Order Allow,Deny
Deny from All
</Files>
<Limit PUT DELETE>
Order Allow,Deny
Deny from All
</Limit>
Options -Indexes

Is that correct?
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby SeO » Sun May 11, 2008 4:53 pm

The generated .htaccess, if you save it, ends up in the phpbb_seo/cache/ directory, not in the phpbb_seo/ one, then, you need to move it to the domain's root (by default).

The .htaccess in the phpbb_seo dir is only there for security purposes, restricting the file access and priviledges in the phpbb_seo direcrtory.
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby vigge_sWe » Sun May 11, 2008 4:56 pm

but when I try to access the .htaccess module I get 400 Bad request...
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby SeO » Sun May 11, 2008 5:07 pm

vigge_sWe wrote:
dcz wrote:You mean, you get the 400 in ACP while trying to generate an .htaccess or everywhere after you actually updated the .htaccess ?


No. But anyway I fixed it becaus I found the .htaccess generated in the phpbb_seo folder. Btw, it has a bug... You have forgot "Rewritengine on" in it so I needed to add that.


Has it changed ?
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby vigge_sWe » Sun May 11, 2008 5:42 pm

SeO wrote:
vigge_sWe wrote:
dcz wrote:You mean, you get the 400 in ACP while trying to generate an .htaccess or everywhere after you actually updated the .htaccess ?


No. But anyway I fixed it becaus I found the .htaccess generated in the phpbb_seo folder. Btw, it has a bug... You have forgot "Rewritengine on" in it so I needed to add that.


Has it changed ?


No! I replaced all ACP files with the new ones, still 400
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby SeO » Sun May 11, 2008 7:11 pm

mmm, is the phpbb_seo/cache/ dir chmoded to 0777 ?

What about the other phpBB SEO ACP parts, like settings and forum urls ?
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby vigge_sWe » Mon May 12, 2008 2:20 pm

SeO wrote:mmm, is the phpbb_seo/cache/ dir chmoded to 0777 ?

What about the other phpBB SEO ACP parts, like settings and forum urls ?


Yes it is 777. The orher parts work, just the .htaccess that return 400. Also I noticed quick lock tool also does this...
vigge_sWe
 
Posts: 29
Joined: Sun Oct 07, 2007 10:24 am

Postby dcz » Wed May 14, 2008 3:34 pm

Try to un-install / reinstall the phpBB SEO acp module (make sure you actually un-installed it in the module acp panel before you run the installer in install mode, just in case).
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21429
Joined: Fri Apr 28, 2006 9:03 pm

Next

Return to phpBB SEO Premod

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 18 guests