Please help (404 error)

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

Please help (404 error)

Postby Ciao121 » Tue Oct 30, 2007 12:08 pm

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: Select all
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 :)
Ciao121
 
Posts: 9
Joined: Tue Oct 30, 2007 12:00 pm

Advertisement

Postby SeO » Tue Oct 30, 2007 1:43 pm

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: Select all
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


in the .htaccess and without :
Code: Select all
RewriteEngine On


Should be enough to, together with the zero duplicate mod, HTTP 301 redirect everything :D

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

++
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby Ciao121 » Sun Nov 04, 2007 10:12 am

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
Ciao121
 
Posts: 9
Joined: Tue Oct 30, 2007 12:00 pm

Postby Ciao121 » Sun Nov 04, 2007 10:46 am

Solved!!! :D :D :D

Thank you :)
Ciao121
 
Posts: 9
Joined: Tue Oct 30, 2007 12:00 pm

Postby Shadow_of_Wishes » Tue Nov 06, 2007 8:31 am

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

this is my .htaccess:
Code: Select all

    # 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?
Shadow_of_Wishes
 
Posts: 1
Joined: Mon Nov 05, 2007 8:09 pm

Postby SeO » Tue Nov 06, 2007 10:13 am

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

++
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm

Postby CheeRees » Sat Dec 15, 2007 3:04 pm

hello, I have some a problem


Code: Select all
    # 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 :(
CheeRees
 
Posts: 19
Joined: Tue Dec 11, 2007 1:24 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Bing [Bot] and 2 guests