Results 1 to 13 of 13

Turning Off Rewrite for Parts of vBSEO

This is a discussion on Turning Off Rewrite for Parts of vBSEO within the General Discussion forums, part of the vBSEO SEO Plugin category; If I want to turn off rewriting for my member profiles, what would be the RewriteRule to make vBSEO URLs ...

  1. #1
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times

    Turning Off Rewrite for Parts of vBSEO

    If I want to turn off rewriting for my member profiles, what would be the RewriteRule to make vBSEO URLs redirect to the standard user profile URL?

    I'm using this format for my user profiles:

    members/[user_name]-[user_id].html
    Last edited by Keith Cohen; 03-01-2006 at 11:01 PM.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times

    Re: Member Profiles - Turning Off Rewrite

    Hello,

    here is the rewrite rule for this:
    RewriteRule ^members/.+-([0-9]+)\.html$ member.php?u=$1 [L,R=301]

  3. #3
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times

    Re: Member Profiles - Turning Off Rewrite

    Thanks!

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times

    Re: Member Profiles - Turning Off Rewrite

    Sorry, forgot to ask about Member List too. Is that possible?

    I was using the default choices for each:
    members/list/
    members/list/index[page].html
    members/list/[letter][page].html

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times

    Re: Member Profiles - Turning Off Rewrite

    Sure,
    RewriteRule ^members/list/index([0-9]+)\.html$ memberlist.php?page=$1 [L,R=301]
    RewriteRule ^members/list/(\w)([0-9]+)\.html$ memberlist.php?ltr=$1&page=$2 [L,R=301]
    RewriteRule ^members/list/$ memberlist.php [L,R=301]

  6. #6
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times

    Re: Member Profiles - Turning Off Rewrite

    Thanks again.


    I'm trying to get it down to only rewriting the forums, and threads, and I forgot Attachments.

    Currently using:
    [forum_title]/[attachment_id]-[thread_title]-[original_filename]

  7. #7
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times

    Re: Member Profiles - Turning Off Rewrite

    (Also, I changed the Title of my first post to make it more generic; feel free to update the Thread Title too.)

    "Turning Off Rewrite for Parts of vBSEO"

  8. #8
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    I'm trying to get it down to only rewriting the forums, and threads, and I forgot Attachments.

    Currently using:
    [forum_title]/[attachment_id]-[thread_title]-[original_filename]
    Here it is
    RewriteRule ^attachments/[^/]+/([0-9]+)-.+$ attachment.php?attachmentid=$1&%{QUERY_STRING} [L,R=301]

  9. #9
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Excellent. Thanks again. That gets me where I want to be.

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    You are very welcome!
    (please check if all this works as I didn't tried them )

  11. #11
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Yep, been trying them along the way and all seems fine. I'll check attachments now.

    I'm a bit embarrassed though; Showpost URLs? :(

    [post_id]-post[post_count].html

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,742
    Liked
    168 times
    Redirect to original showpost URL:

    ^([0-9]+)-post([0-9]+)\.html$ showpost.php?p=$1&postcount=$2 [L,R=301]

  13. #13
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    I attempted Polls myself. Look correct?

    RewriteRule ^poll/.+-([0-9]+)\.html$ /forums/poll.php?do=showresults&pollid=$1 [L,R=301]

    (Was using: [forum_title]/poll-[poll_id]-[poll_title].html)

Similar Threads

  1. vBSEO 2.4.0 Released - Includes Google AdSense Targeting Feature!
    By Juan Muriente in forum vBSEO Announcements
    Replies: 74
    Last Post: 05-20-2006, 09:29 PM
  2. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-08-2005, 11:00 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
  •