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
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 ...
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.
Hello,
here is the rewrite rule for this:
RewriteRule ^members/.+-([0-9]+)\.html$ member.php?u=$1 [L,R=301]
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Thanks!
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
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]
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
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]
(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"
Here it isI'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]
RewriteRule ^attachments/[^/]+/([0-9]+)-.+$ attachment.php?attachmentid=$1&%{QUERY_STRING} [L,R=301]
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
Excellent. Thanks again. That gets me where I want to be.![]()
You are very welcome!
(please check if all this works as I didn't tried them)
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
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
Redirect to original showpost URL:
^([0-9]+)-post([0-9]+)\.html$ showpost.php?p=$1&postcount=$2 [L,R=301]
Oleg Ignatiuk / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
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)