Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2016, 04:43 PM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Removed vBSEO - How To Redirect Members & Groups?

I removed vBSEO from the forum and used the suggested rewrite code for threads and it works
Unfortunately i could not get forum members and groups rewrite to work, any ideas what i could try ?

http://www.site.com/members/user-5.html to http://www.site.com/member.php?u=5
http://www.site.com/groups/new-group.html to http://www.site.com/group.php?groupid=1

This is what i have now in the .htaccess file:

RewriteEngine on
RewriteRule [^/]+/([0-9]+)-[^/]+\.html http://www.site.com/showthread.php?t=$1 [L,R=301]
RewriteRule [^/]+/([0-9]+)-[^/]+\.html http://www.site.com/forumdisplay.php?f=$1 [L,R=301]

Redirect 301 /forum/subforum http://www.site.com/forumdisplay.php?f=1
Redirect 301 /forum/subforum/subforum http://www.site.com/forumdisplay.php?f=2
Reply With Quote
  #2  
Old 02-06-2016, 10:11 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Might hit up Joe (BirdofPrey) he helped me with some custom redirects after I removed vbseo on one of my sites.
Reply With Quote
2 благодарности(ей) от:
Fynnon, RichieBoy67
  #3  
Old 02-07-2016, 09:04 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately groups can't be redirected being as there is no ID number in the URL.

If your VBSEO was setup to actually put a userid in the URL for your Member's profile pages then you are really lucky because I've never seen a VBSEO setup that actually did that- and without the userid in the URL you would be out of luck there too.

However given the example URL you provided:

Code:
http://www.site.com/members/user-5.html
Try this rewrite rule

Code:
RewriteRule members/.+-(\d)\.html http://www.site.com/member.php?u=$1 [L,R=301]
If that's not it, it's close. If you can post an actual link it might help if I need to fix it.
Reply With Quote
3 благодарности(ей) от:
Brandon Sheley, Fynnon, TheLastSuperman
  #4  
Old 02-14-2016, 07:34 PM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post

Try this rewrite rule
It works ! Thanks

Could you please show me something similar for forums ?
Right now i have a working rule for showthread and members but forumdisplay is not working
Reply With Quote
Благодарность от:
TheLastSuperman
  #5  
Old 02-15-2016, 10:50 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need to know what your old link looked like. An example would be great.
Reply With Quote
  #6  
Old 02-17-2016, 07:42 PM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is an example:

Thanks
Reply With Quote
  #7  
Old 02-18-2016, 10:11 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Again, if there's no id number in the old links there's no way to do an automatic rule.

I suppose you could add a rule for every single forum you had but it doesn't seem efficient-

If you wanted to though as an example;

Code:
RewriteRule p2p/news/introduce-yourself/ http://bvlist.com/forumdisplay.php?f=38 [L,R=301]
Reply With Quote
  #8  
Old 02-20-2016, 11:18 AM
Fynnon Fynnon is offline
 
Join Date: Jul 2008
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The thing is that after the last changes i started getting white pages on Firefox and Opera but not IE or Chrome. Any ideas why?

PHP Code:
RewriteEngine on

RewriteRule 
[^/]+/([0-9]+)-[^/]+\.html http://www.bvlist.com/showthread.php?t=$1 [L,R=301]
RewriteRule [^/]+/([0-9]+)-[^/]+\.html http://www.bvlist.com/forumdisplay.php?f=$1 [L,R=301]
RewriteRule members/.+-(\d)\.html http://www.bvlist.com/member.php?u=$1 [L,R=301]

Redirect 301 /p2p/forum/downloadshttp://www.bvlist.com/forumdisplay.php?f=16
Redirect 301 /p2p/forum/sell-buyhttp://www.bvlist.com/forumdisplay.php?f=37
Redirect 301 /p2p/forum/tracker-inviteshttp://www.bvlist.com/forumdisplay.php?f=36
Redirect 301 /p2p/forum/community-cafehttp://www.bvlist.com/forumdisplay.php?f=18
Redirect 301 /p2p/forum/tutorialshttp://www.bvlist.com/forumdisplay.php?f=61

Redirect 301 /sourcecode/zentrackerhttp://www.bvlist.com/forumdisplay.php?f=81
Redirect 301 /sourcecode/Gazellehttp://www.bvlist.com/forumdisplay.php?f=40
Redirect 301 /sourcecode/Project-U-232http://www.bvlist.com/forumdisplay.php?f=80
Redirect 301 /sourcecode/tbdevhttp://www.bvlist.com/forumdisplay.php?f=20
Redirect 301 /sourcecode/Template-Shareshttp://www.bvlist.com/forumdisplay.php?f=26 
Reply With Quote
  #9  
Old 02-24-2016, 10:56 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

White pages on forum links or any page?

Have you checked the php error log?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04519 seconds
  • Memory Usage 2,267KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (6)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete