| :: |
| Author |
Message |
Claudio Trendo
Joined: 04 Sep 2006 Posts: 13 Location: Brazil
|
Posted: Fri Jul 27, 2007 5:48 pm Post subject: Problem in .htaccess |
|
|
Hello,
Sorry my bad English.
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: | #########################################################
# 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. |
_________________ Thanks
Claudio
PS. Sorry my bad English. |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13994
|
Posted: Fri Jul 27, 2007 7:17 pm Post subject: Re: Problem in .htaccess |
|
|
Alone, this .htaccess is not complete, you need to start the mod_rewrite :
| Code: | 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 || 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 |
|
 |
Claudio Trendo
Joined: 04 Sep 2006 Posts: 13 Location: Brazil
|
Posted: Fri Jul 27, 2007 8:01 pm Post subject: Re: Problem in .htaccess |
|
|
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
| Quote: | 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.
--------------------------------------------------------------------------------
|
|
_________________ Thanks
Claudio
PS. Sorry my bad English. |
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3384
|
|
| Back to top |
|
 |
salik
Joined: 05 Mar 2008 Posts: 8
|
Posted: Wed Mar 05, 2008 5:33 am Post subject: Re: Problem in .htaccess |
|
|
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 |
|
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Thu Mar 06, 2008 9:27 am Post subject: Re: Problem in .htaccess |
|
|
Show your .htaccess here.
Have you tested on a live site? same errors? |
|
|
| Back to top |
|
 |
salik
Joined: 05 Mar 2008 Posts: 8
|
Posted: Thu Mar 06, 2008 9:31 am Post subject: Re: Problem in .htaccess |
|
|
# 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
##################################################### |
|
|
| Back to top |
|
 |
salik
Joined: 05 Mar 2008 Posts: 8
|
Posted: Thu Mar 06, 2008 9:32 am Post subject: Re: Problem in .htaccess |
|
|
yes same error page not found
-http://localhost/phpbb3/forum2.html
and also the live site |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13994
|
|
| Back to top |
|
 |
|
|