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  
 
   
Almost perfect but need a little help on the rewrite

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



Joined: 06 Nov 2008
Posts: 3

Almost perfect but need a little help on the rewritePosted: Thu Nov 06, 2008 5:26 pm    Post subject: Almost perfect but need a little help on the rewrite

Okay - I have been playing this for a few days. I am pretty confident I installed all the pieces correctly.

However, here is what happens.

http://nasrac.com/testforum -- this is okay, click it and then click Testing123. You would think it would rewrite but it only shows http://nasrac.com/testforum/topic2.html instead of /testing123-a3.html or something.

Here 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 /
    # 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 WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
    # RewriteRule ^testforum/forum\.html$ /testforum/index.php [QSA,L,NC]
    # FORUM
    RewriteRule ^testforum/forum([0-9]+)(-([0-9]+))?\.html$ /testforum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER
    RewriteRule ^testforum/forum([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /testforum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
    # GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
    RewriteRule ^testforum/announces/topic([0-9]+)(-([0-9]+))?\.html$ /testforum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM
    RewriteRule ^testforum/[a-z0-9_-]*/?topic([0-9]+)(-([0-9]+))?\.html$ /testforum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
    # PROFILES SIMPLE
    RewriteRule ^testforum/member([0-9]+)\.html$ /testforum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
    # USER MESSAGES SIMPLE
    RewriteRule ^testforum/member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /testforum/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS SIMPLE
    RewriteRule ^testforum/group([0-9]+)(-([0-9]+))?\.html$ /testforum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
    # POST
    RewriteRule ^testforum/post([0-9]+)\.html$ /testforum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^testforum/active-topics(-([0-9]+))?\.html$ /testforum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^testforum/unanswered(-([0-9]+))?\.html$ /testforum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^testforum/newposts(-([0-9]+))?\.html$ /testforum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # THE TEAM
    RewriteRule ^testforum/the-team\.html$ /testforum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # END PHPBB PAGES
    #####################################################



I know I followed these directions...

Code:
Before you start, read this with caution.
=> For a smooth install :
   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 www.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 www.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


and made all the corresponding changes to prosilver, I did skipped the 3 or 4 for subsilver2 changes just for speed.

Can anyone advise? I would like to migrate this to my prod site but want to see it working her in a test forum. Thanks in advance.

Other info...I do have the htaccess in my root. In ACP the SEO module shows up nice, before I made the changes to the files it looked funny but looks and acts nice now. I have cleared my cache several times. I have uploaded the .htaccess several times.

Thanks in advance.

Minnelli
Back to top
minnelli



Joined: 06 Nov 2008
Posts: 3

Almost perfect but need a little help on the rewritePosted: Fri Nov 07, 2008 2:30 am    Post subject: Re: Almost perfect but need a little help on the rewrite

My public_html/testforum/phpbb_seo/phpbb_seo_class.php has been modified to 'index' => 'forum'

Code:
$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => 'forum', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
      // URL suffixes, for the phpBB URLs
      // can be edited, requires .htaccess update.
      
$this->seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html',  'index' => '', 'global_announce' => '/', 'leaders' => '.html', 'atopic' => '.html', 'utopic' => '.html', 'npost' => '.html', 'pagination' => '.html', 'gz_ext' => '');
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15414

Almost perfect but need a little help on the rewritePosted: Sun Nov 09, 2008 10:12 am    Post subject: Re: Almost perfect but need a little help on the rewrite

Well that's what the simple SEO url mod is doing, a static URL rewriting.

The mixed one will inject a selection of keywords in forum urls, things like :
forum-keywords.html (with topicxx.html for topics) or forum-keywords/ (with forum-keywords/topicxx.html for topics in case you activate the virtual folder trick).

The advanced will additionally inject topic titles in topic urls : topic-title-txx.html or forum-keywords/topic-title-txx.html with the virtual folder trick.

++

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



Joined: 06 Nov 2008
Posts: 3

Almost perfect but need a little help on the rewritePosted: Sun Nov 09, 2008 3:00 pm    Post subject: Re: Almost perfect but need a little help on the rewrite

Thank you - I guess I need to go do the Mixed Smile I'll start reading up on that. At least I got the basic working, hopefully the jump to mixed isn't that big of a change. Thanks for phpSEO...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Simple SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: