Problem in .htaccess

phpBB2 SEO Simple mod Rewrite support forum.
This mods performs a fully static URL rewriting for phpBB.
Simple and efficient.

Moderator: Moderators

Problem in .htaccess

Postby Claudio Trendo » Fri Jul 27, 2007 5:48 pm

Hello,

Sorry my bad English. :oops:

I install in 09/2006 Advanced mod Rewrite, phpBB SEO Dynamic Meta Tags, in this time works perfect, but i try now and have problems.

I think this problems in the .htaccess, because o lost this file, i try make this file again:

Code: Select all
#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# CATEGORIES
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
# PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################


But no works.

My site is www.inforeefs.com.br

I wait help... Please.
Claudio Trendo
 
Posts: 13
Joined: Mon Sep 04, 2006 3:06 am
Location: Brazil

Advertisement

Postby dcz » Fri Jul 27, 2007 7:17 pm

Alone, this .htaccess is not complete, you need to start the mod_rewrite :
Code: Select all
RewriteEngine On
RewriteBase /

#########################################################
# PHPBB SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# CATEGORIES
RewriteRule ^cat([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
# PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################


Should work if your forum is installed in the domain's root.

Take a look at the contrib folder, you'll find some sample .htaccess for several cases. If your forums is installed in a folder, you'll need to edit it.

Tell us if you have trouble.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Claudio Trendo » Fri Jul 27, 2007 8:01 pm

Hi dcz,

I change the .htaccess, now the profile works but the forum not works.

If you try click in one category.

-http://www.inforeefs.com.br/marinho-geral-vf1.html

Not Found
The requested URL /marinho-geral-vf1.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Claudio Trendo
 
Posts: 13
Joined: Mon Sep 04, 2006 3:06 am
Location: Brazil

Postby SeO » Fri Jul 27, 2007 8:03 pm

Looks like you are either using the mixed or the advanced mod rewrite, just download the proper archive again and use the provided .htaccess, should work as is if you take the root_install/ one (the English one).
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby salik » Wed Mar 05, 2008 5:33 am

i have also face the same prob when i place .htaccess on my local root running Xampp Apache so there is an error showing 404

-http://localhost/phpBB3-SEO-Premod_V_3-0-0/root/forum2.html?sid=438e3c34f1c4b281184c1e4060348bda

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
03/05/08 09:43:01
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.1.6


so plz help me 4 running phpbb seo

Regard's
salik
 
Posts: 8
Joined: Wed Mar 05, 2008 4:44 am

Postby Peter77 » Thu Mar 06, 2008 9:27 am

Show your .htaccess here.

Have you tested on a live site? same errors?
Peter77
phpBB SEO Team
phpBB SEO Team
 
Posts: 520
Joined: Wed May 10, 2006 9:46 am
Location: Michigan

Postby salik » Thu Mar 06, 2008 9:31 am

# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

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

# END PHPBB PAGES
#####################################################
salik
 
Posts: 8
Joined: Wed Mar 05, 2008 4:44 am

Postby salik » Thu Mar 06, 2008 9:32 am

yes same error page not found

-http://localhost/phpbb3/forum2.html

and also the live site
salik
 
Posts: 8
Joined: Wed Mar 05, 2008 4:44 am

Postby dcz » Wed Mar 12, 2008 10:58 am

Please do not post more than required, it's only bringing more confusion to provide support.

You're here talking about phpBB3 within a phpBB2 support forum, and I already started to provide support here : http://www.phpbb-seo.com/boards/simple- ... t2200.html

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 Simple mod rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest