phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
400 bad request
Goto page 1, 2  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
::  
Author Message
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Mon May 05, 2008 3:20 pm    Post subject: 400 bad request

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?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

400 bad requestPosted: Tue May 06, 2008 1:24 pm    Post subject: Re: 400 bad request

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 || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Tue May 06, 2008 2:34 pm    Post subject: Re: 400 bad request

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.
Back to top
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Tue May 06, 2008 3:02 pm    Post subject: Re: 400 bad request

or actually, the "new posts" , "active topics" and "unanswered posts" don't work...
Back to top
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Wed May 07, 2008 2:03 pm    Post subject: Re: 400 bad request

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

My current .htaccess:

Code:
# 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
#####################################################
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

400 bad requestPosted: Thu May 08, 2008 10:45 am    Post subject: Re: 400 bad request

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.

_________________
Back to top
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Sun May 11, 2008 4:00 pm    Post subject: Re: 400 bad request

I uploaded the newest ACP module and added it again but it still don't work...
Back to top
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Sun May 11, 2008 4:14 pm    Post subject: Re: 400 bad request

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?
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

400 bad requestPosted: Sun May 11, 2008 4:53 pm    Post subject: Re: 400 bad request

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.

_________________
Back to top
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Sun May 11, 2008 4:56 pm    Post subject: Re: 400 bad request

but when I try to access the .htaccess module I get 400 Bad request...
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

400 bad requestPosted: Sun May 11, 2008 5:07 pm    Post subject: Re: 400 bad request

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 ?

_________________
Back to top
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Sun May 11, 2008 5:42 pm    Post subject: Re: 400 bad request

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
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3103

400 bad requestPosted: Sun May 11, 2008 7:11 pm    Post subject: Re: 400 bad request

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

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

_________________
Back to top
vigge_sWe



Joined: 07 Oct 2007
Posts: 21

400 bad requestPosted: Mon May 12, 2008 2:20 pm    Post subject: Re: 400 bad request

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...
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

400 bad requestPosted: Wed May 14, 2008 3:34 pm    Post subject: Re: 400 bad request

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 || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
Page 1 of 2 Goto page 1, 2  Next

Navigation Similar Topics

Jump to: