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  
 
   
Please help (404 error)

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
Ciao121



Joined: 30 Oct 2007
Posts: 7

Please help (404 error)Posted: Tue Oct 30, 2007 12:08 pm    Post subject: Please help (404 error)

Hi all,
this is my situation:
I have a phpbb2 forum in my root (http://www.a1k.it) and the new phpbb3 version in a subfolder (http://www.a1k.it/forum).

Phpbb2 version is fully working with a mod rewrite like this in .htaccess:

Code:
RewriteEngine On
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]


I tried every combination of the .htaccess generated by Advanced SEO URL (placed in the root or in the subfolder) but I always get a 404 error.

A rewritten url to see as example is:
http://www.a1k.it/forum/foto-fredda-t15369.html
the not rewritten url is:
http://www.a1k.it/forum/viewtopic.php?f=26&t=15369

Any idea what I'm doing wrong?
Thank you in advance Smile
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Please help (404 error)Posted: Tue Oct 30, 2007 1:43 pm    Post subject: Re: Please help (404 error)

Have you tried to hit the more option option while generating your .htaccess ?

Because you should be able to put the phpBB3's .htaccess in the forum/ folder with the "alternate location" option that will show up with the more option activated.

Then, this means you'll have to migrate from the able2know mod rewrite when you switch to phpBB3 (if this is your plan of course).

Once you'll be ready, you'll just have to delete the phpBB2 files, move the converted forum from the forum/ folder to the root folder, edit the phpbb_config table to set script_path to "/" (instead of "/forum"), clear cache, generate a new .htaccess for root and put the old able2know rewriterules after :
Code:
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


in the .htaccess and without :
Code:
RewriteEngine On


Should be enough to, together with the zero duplicate mod, HTTP 301 redirect everything Very Happy

You as well may want to start directly with our premod, which comes with all SEO mods installed and automatic update packages Wink

++

_________________
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
Ciao121



Joined: 30 Oct 2007
Posts: 7

Please help (404 error)Posted: Sun Nov 04, 2007 10:12 am    Post subject: Re: Please help (404 error)

Thank you for your reply.
I tried to move the phpbb3 forum in the root folder and, without activating the url rewrite, it seems to be fully working; but again I have always 404 errors when i try to open ie. -http://www.a1k.it/area-moderatori-f37.html

First doubto is you said: "edit the phpbb_config table to set script_path to "/" (instead of "/forum")", but using phpmyadmin all the phpbb_config fields are BLOB type.. so I don't know how to change values. And this cause a wrong htaccess to be generated (i tried to correcto it by hand, tried all the options, but again not working).
But let solve by now the phpbb_config table problem... is it right that valuesa are blob? And how can I change those values?

Thanks
Back to top
Ciao121



Joined: 30 Oct 2007
Posts: 7

Please help (404 error)Posted: Sun Nov 04, 2007 10:46 am    Post subject: Re: Please help (404 error)

Solved!!! Very Happy Very Happy Very Happy

Thank you Smile
Back to top
Shadow_of_Wishes



Joined: 05 Nov 2007
Posts: 1

Please help (404 error)Posted: Tue Nov 06, 2007 8:31 am    Post subject: Re: Please help (404 error)

I have the same problem (404) with my phpBB3 forum http://www.phpbb3db.com/comunitate/

this is my .htaccess:
Code:


    # 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 /comunitate/
    # HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

    #####################################################
    # PHPBB SEO REWRITE RULES - ADVANCED
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET As FORUM INDEX
    # RewriteRule ^/forum\.html$ /index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^/[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^/post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
    #PROFILES
    RewriteRule ^/member([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$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_-]+(-([0-9]+))?\.html$ /viewforum.php?start=$2 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################


What can i do to fix it?
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Please help (404 error)Posted: Tue Nov 06, 2007 10:13 am    Post subject: Re: Please help (404 error)

Did you uploaded it in the comunitate/ dir ?

The use of the right slash in the rewriterule is not the default, maybe you should as well try the generated .htaccess when you select alternate location (after you have checked the more option button).

++

_________________
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
CheeRees



Joined: 11 Dec 2007
Posts: 13

Please help (404 error)Posted: Sat Dec 15, 2007 3:04 pm    Post subject: Re: Please help (404 error)

hello, I have some a problem


Code:
    # 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 - ADVANCED
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET As FORUM INDEX
    # RewriteRule ^phpbb3/forum\.html$ /phpbb3/index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^phpbb3/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /phpbb3/viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^phpbb3/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([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/[a-z0-9_-]*-t([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_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /phpbb3/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^phpbb3/post([0-9]+)\.html$ /phpbb3/viewtopic.php?p=$1 [QSA,L,NC]
    #PROFILES
    RewriteRule ^phpbb3/member([0-9]+)\.html$ /phpbb3/memberlist.php?mode=viewprofile&u=$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

    # 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 ^phpbb3/[a-z0-9_-]+(-([0-9]+))?\.html$ /phpbb3/viewforum.php?start=$2 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################

When I Activate URL rewriting and look for any forum or topic the url is
www.my.com/phpbb3/post.html Sad
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: