Ultimate SEO won't rewrite forum URLS

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

Ultimate SEO won't rewrite forum URLS

Postby tarus » Mon Aug 10, 2009 4:07 am

Well I've been playing around with this for about three hours and thought I would come here for some help.

I used the premod and followed these steps:

1) Backup all your files;
2) Apply the mod code changes on copies of your files;
3) Upload all files;
4) CHMOD the phpbb_seo/cache/ folder to 0777;
5) Empty the phpBB/cache/ folder : just delete all files EXCEPTS the .htaccess.
6) Go to yoursite.com/phpBB/phpbb_seo/phpbb_seo_install.php and follow the install instruction
7) Go to phpBB ACP : It's now time to play with settings described bellow;
8) Generate your personalized .htaccess and upload or move it following the instructions;
9) Test a rewritten URL, such as yoursite.com/phpBB/post1.html, if you end up with a 404 (not a phpBB message), go back to step 8;
10) Activate URL rewriting in phpBB ACP and allow yourself some auto-congratulation :D


The problem is I put the .htaccess file on my ftp in the www directory, and yet the plugin never seems to work. I tested out the apache rewrite mod and it works; and when I put the .htaccess file then when I type in a page such as mmohideout.com/forum/test.html .... my forum loads up but I get a "Information

The forum you selected does not exist."

Same if I type in mmohideout.com/forum/testxyzrandomtextanything.html .... "The forum you selected does not exist". If I remove the .htaccess file I get a 404 error... so it is doing something it just doesn't seem to work or rewrite anything.

.htaccess file:

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 lines
    # Options +FollowSymlinks
    # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
    # Options -MultiViews
    # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
    RewriteEngine On
    # REWRITE BASE
    RewriteBase /
    # HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
    # RewriteCond %{HTTP_HOST} !^mmohideout\.com$ [NC]
    # RewriteRule ^(.*)$ http://mmohideout.com/$1 [QSA,L,R=301]

    # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    #####################################################
    # PHPBB SEO REWRITE RULES ALL MODES
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX
    RewriteRule ^forum\.html$ /forum/index.php [QSA,L,NC]
    # FORUM ALL MODES
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?f=$2&start=$4 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$2&start=$4 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
    RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
    # PHPBB FILES ALL MODES
    RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /forum/download/file.php?id=$2&t=$1 [QSA,L,NC]
    # PROFILES ALL MODES WITH ID
    RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
    # USER MESSAGES ALL MODES WITH ID
    RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /forum/search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
    # GROUPS ALL MODES
    RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
    # POST
    RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?\.html$ /forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?\.html$ /forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?\.html$ /forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # FORUM WITHOUT ID & DELIM ALL MODES (SAME DELIM)
    # THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    # END PHPBB PAGES
    #####################################################

tarus
 
Posts: 3
Joined: Mon Aug 10, 2009 3:55 am

Advertisement

Re: Ultimate SEO won't rewrite forum URLS

Postby dcz » Mon Aug 10, 2009 12:28 pm

What you describe is normal. Since forum urls without ids are of this form : example.com/phpBB/url.html, the .htaccess will basically catch all files.html that do not exist in the phpBB directory and address them to viewforum.php where it will eventually match an existing forum. A 404 header is sent if the forum does not exist, together with the message you mention. So it's not an SEO issue.

Though, you may confuse about something, the .htaccess is not the one that will actually rewrite the urls, it will only allow the rewritten urls to work. The fact you saw the viewforum message on a random .html uri shows that it works.
So if you urls are not rewritten, you now need to make sure that you activated url rewriting in acp, and that you implemented all the required code changes from the install file.

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

Re: Ultimate SEO won't rewrite forum URLS

Postby tarus » Mon Aug 10, 2009 2:06 pm

They are all activated; and I used the pre-mod install to setup all the files.

I did note that when I turned on: "You just activated the SQL Rewriting option, you should now synchronize all your topics URLs by going to this page if you did not already.
This will not change any of your current URLs"

and I click to go to that page I get:

"You must activate SQL Rewriting to use this script !"

I just can't figure out how to get it to work. Everything is updated and activated...
tarus
 
Posts: 3
Joined: Mon Aug 10, 2009 3:55 am

Re: Ultimate SEO won't rewrite forum URLS

Postby tarus » Mon Aug 10, 2009 3:10 pm

And is there any other information I should provide that would be helpful in troubleshooting this problem? Thanks once again for the help!
tarus
 
Posts: 3
Joined: Mon Aug 10, 2009 3:55 am

Re: Ultimate SEO won't rewrite forum URLS

Postby dcz » Tue Aug 11, 2009 12:22 pm

When you submit the form activating the SQL rewriting option, do you see it activated on the form ?
If not, you may need to chmod the phpbb_seo/cache/ directory and the files in it to be be writable by php.

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

Re: Ultimate SEO won't rewrite forum URLS

Postby pokiboy » Wed Sep 23, 2009 5:11 am

how do i install phpBB_SEO_Ultimate_SEO_URLV0-6-0?
pokiboy
 
Posts: 10
Joined: Wed Sep 23, 2009 3:49 am

Re: Ultimate SEO won't rewrite forum URLS

Postby dcz » Fri Sep 25, 2009 10:52 am

Post less, read more ;)
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: 21378
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 14 guests