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  
 
   
Problem in .htaccess

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Simple mod rewrite
::  
Author Message
Claudio Trendo



Joined: 04 Sep 2006
Posts: 13
Location: Brazil

Problem in .htaccessPosted: Fri Jul 27, 2007 5:48 pm    Post subject: Problem in .htaccess

Hello,

Sorry my bad English. Embarassed

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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13994

Problem in .htaccessPosted: 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
Visit poster's website
Claudio Trendo



Joined: 04 Sep 2006
Posts: 13
Location: Brazil

Problem in .htaccessPosted: 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
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3384

Problem in .htaccessPosted: Fri Jul 27, 2007 8:03 pm    Post subject: Re: Problem in .htaccess

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).

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
salik



Joined: 05 Mar 2008
Posts: 8

Problem in .htaccessPosted: 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
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Problem in .htaccessPosted: 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

Problem in .htaccessPosted: 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

Problem in .htaccessPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13994

Problem in .htaccessPosted: Wed Mar 12, 2008 10:58 am    Post subject: Re: Problem in .htaccess

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-seo-url/discussions-vt2200.html

++

_________________
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  » phpBB mod Rewrite  » Simple mod rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: