vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Removed vBSEO - How To Redirect Members & Groups? (https://vborg.vbsupport.ru/showthread.php?t=321738)

Fynnon 02-06-2016 04:43 PM

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

Brandon Sheley 02-06-2016 10:11 PM

Might hit up Joe (BirdofPrey) he helped me with some custom redirects after I removed vbseo on one of my sites.

BirdOPrey5 02-07-2016 09:04 PM

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.

Fynnon 02-14-2016 07:34 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2564422)

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

BirdOPrey5 02-15-2016 10:50 AM

I need to know what your old link looked like. An example would be great.

Fynnon 02-17-2016 07:42 PM

Here is an example:

Thanks

BirdOPrey5 02-18-2016 10:11 PM

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]

Fynnon 02-20-2016 11:18 AM

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 


BirdOPrey5 02-24-2016 10:56 PM

White pages on forum links or any page?

Have you checked the php error log?


All times are GMT. The time now is 03:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01721 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete