Results 1 to 3 of 3

Removing all url extensions

This is a discussion on Removing all url extensions within the General Discussion forums, part of the vBSEO SEO Plugin category; I think i've set up all the url rewrite settings from within the vbseo admincp, though there are still some ...

  1. #1
    Member
    Real Name
    Grumbledook
    Join Date
    Jun 2006
    Posts
    37
    Liked
    0 times

    Removing all url extensions

    I think i've set up all the url rewrite settings from within the vbseo admincp, though there are still some links that are dynamic.

    Is there a guide on doing this? I've done a forum search and a google search but couldn't find one.

    for example the lost password link and form is:

    http://example.com/forums/login.php?do=lostpw

    how do I make sure all the ones like that and any others I find are rewritten, or do most ppl not bother with them?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Most of those "B" pages can simply be ignored. They will likely never be indexed anyway and don't need to be static.

    You can create CRR's for all of that if you wish.

    I use a handful to re-write the FAQ section, PM section, and my itrader add-on, plus a couple additional custom pages:

    note, i am installed in root.

    Code:
    '^about\.php$' => 'about/'
    '^rules\.php$' => 'rules/'
    '^advertise\.php$' => 'advertise/'
    
    
    //==========================================================================
    //                  faq
    //==========================================================================
    '^faq\.php$' => 'faq/'
    '^faq\.php\?faq=vb3_board_faq$' => 'faq/forums/'
    '^faq\.php\?faq=vb3_board_usage$' => 'faq/forums/general/'
    '^faq\.php\?faq=vb3_user_profile$' => 'faq/forums/profile/'
    '^faq\.php\?faq=vb3_reading_posting$' => 'faq/forums/reading-posting/'
    '^faq\.php\?faq=vbblog_faq$' => 'faq/blog/'
    '^faq\.php\?faq=vbblog_faq_general$' => 'faq/blog/general/'
    '^faq\.php\?faq=vbblog_faq_reading_and_posting$' => 'faq/blog/messages/'
    '^faq\.php\?faq=vbblog_faq_reading_and_posting_options$' => 'faq/blog/messages/options/'
    '^faq\.php\?faq=vbblog_faq_reading_and_posting_how_do_i_post$' => 'faq/blog/messages/posting/'
     //==========================================================================
    //                 Private Messages
    //==========================================================================
    
    '^private\.php$' => 'pm/'
    '^private\.php\?do=trackpm' => 'pm/track/'
    '^private\.php\?do=editfolders' => 'pm/folders/'
    '^private\.php\?do=newpm$' => 'pm/new/'
    '^private\.php\?do=newpm&u=(\d+)' => 'pm/new/to-$1/'
    '^private\.php\?do=showpm&pmid=(\d+)$' => 'pm/message-$1/'
    '^private\.php\?folderid=(.+?)$' => 'pm/folder-$1/'
    
    
    
    //==========================================================================
    //                 Profile Pages
    //==========================================================================
    '^profile\.php$' => 'profile/'
    '^profile\.php\?do=editsignature' => 'profile/signature/'
    '^profile\.php\?do=editoptions' => 'profile/options/'
    '^profile\.php\?do=editprofilepic' => 'profile/pic/'
    '^profile\.php\?do=editprofile' => 'profile/edit/'
    '^profile\.php\?do=editavatar' => 'profile/avatar/'
    '^profile\.php\?do=editpassword' => 'profile/password/'
    '^profile\.php\?do=editattachments' => 'profile/attachments/'
    '^profile\.php\?do=ignorelist' => 'profile/foes/'
    '^profile\.php\?do=customize' => 'profile/customize/'
    '^profile\.php\?do=buddylist' => 'profile/friends/'
    '^profile\.php\?do=editusergroups' => 'profile/usergroups/'
    
    
    
    //==========================================================================
    //                Control Panel
    //==========================================================================
    '^usercp\.php$' => 'myaccount/'
    
    
    
    //==========================================================================
    //                  Online Users
    //==========================================================================
    '^online\.php' => 'activeusers/'
    
    
    
    //==========================================================================
    //                  Send Message / Email script
    //==========================================================================
    '^sendmessage\.php$' => 'sendemail/'
    '^sendmessage\.php\?do=mailmember&u=(\d+)' => 'sendemail/to-$1/'
    
    
    
    
    
    //==========================================================================
    //                 iTrader
    //==========================================================================
    '^itrader.php$' => 'feedback/'
    '^itrader\.php\?u=(\d+)$' => 'feedback/user-$1/'
    '^itrader\.php\?u=(\d+)&iv=1' => 'feedback/user-$1/from-buyers/'
    '^itrader\.php\?u=(\d+)&iv=2' => 'feedback/user-$1/from-sellers/'
    '^itrader\.php\?u=(\d+)&iv=3' => 'feedback/user-$1/from-trades/'
    '^itrader\.php\?u=(\d+)&iv=4' => 'feedback/user-$1/left/'
    
    '^itrader_feedback\.php\?u=(\d+)$' => 'feedback/leave-feedback/user-$1/'
    '^itrader_feedback\.php\?ir=(\d+)&u=(\d+)&do=editfeedback' => 'feedback/edit-feedback/user-$1/'
    
    '^itrader_detail\.php\?ir=(\d+)&u=(\d+)$' => 'feedback/transaction-$1/user-$2/'
    '^itrader_detail\.php\?ir=(\d+)&u=(\d+)&do=newcomment' => 'feedback/transaction-$1/user-$2/respond/'
    '^itrader_detail\.php\?ir=(\d+)&u=(\d+)&do=editcomment' => 'feedback/transaction-$1/user-$2/edit/'
    
    
    '^itrader_report\.php\?ir=(\d+)&u=(\d+)' => 'feedback/report/transaction-$1/user-$2/'

  3. #3
    Member
    Real Name
    Grumbledook
    Join Date
    Jun 2006
    Posts
    37
    Liked
    0 times
    ok thanks, think I will just leave it then

Similar Threads

  1. Critique Request: www.jv-extensions.com
    By sniranjan in forum Critique Please
    Replies: 5
    Last Post: 03-09-2009, 08:59 AM
  2. Removing .html extensions from rewrite rule?
    By simonvlc in forum URL Rewrite Settings
    Replies: 2
    Last Post: 11-16-2008, 01:20 PM
  3. Multiple domain extensions
    By Snake in forum General Discussion
    Replies: 7
    Last Post: 10-15-2007, 07:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •