vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   VBSEO uninstall rewrite help (https://vborg.vbsupport.ru/showthread.php?t=301887)

Joey805 09-04-2013 05:34 PM

VBSEO uninstall rewrite help
 
I just uninstalled VBSEO and need some help with rewrite rules getting my old indexed url's to redirect to the standard vb urls.

I got my threads to redirect using the following:

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


However I cannot seem to get my forumdisplay.php to redirect. I have a bunch of dead links on google that I would like to get fixed. My old url vbseo url looks like this:

http://www.mydomain.com/forum/boat-talk/

My new URL for that forum looks like this:

http://www.mydomain.com/forum/forumdisplay.php?f=175

I understand that I probably have to do a rewrite for each forum which is ok, but I need help with the syntax of the rule.

Any help would be appreciated.

Thanks

snakes1100 09-04-2013 05:59 PM

Scratch that, i have it someplace, have to chk for it.

Yes, if you had the forum id's, one rule would of worked.

What rule are u using now?

Joey805 09-04-2013 06:14 PM

I'm not using anything now, I uninstalled VBSEO. All my threads 301 redirect to the old vbulletin urls fine, but all my indexed forum thread listings are dead 404 errors.

My old forum display url looked like this when running vbseo:

http://www.mydomain.com/forum/boat-talk/

My new URL for that forum looks like this with no vbseo:

http://www.mydomain.com/forum/forumdisplay.php?f=175

Google has a 404 error for these indexed items currently.

snakes1100 09-04-2013 07:06 PM

Try this:
'^boat-talk/$' => 'forumdisplay.php?f=175'

TheLastSuperman 09-04-2013 07:37 PM

See the links to the old blog post and other link on vbseo forums in my post here - https://vborg.vbsupport.ru/showpost....85&postcount=3

I recently removed it and had to jump through a few hoops honestly so I can only imagine that similar is happening to many others.

snakes1100 09-04-2013 07:42 PM

He doesnt have forum id's in his old urls, so those links wont help him.

Joey805 09-04-2013 08:12 PM

Quote:

Originally Posted by snakes1100 (Post 2443239)
Try this:
'^boat-talk/$' => 'forumdisplay.php?f=175'



Got this error when using that:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@mydomain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Here is what I put in the .htaccess file:

RewriteRule '^boat-talk/$' => 'forumdisplay.php?f=201'

snakes1100 09-04-2013 08:32 PM

Sorry, try this:
^boat-talk/$ forumdisplay.php?f=175

Joey805 09-04-2013 08:47 PM

Quote:

Originally Posted by snakes1100 (Post 2443258)
Sorry, try this:
^boat-talk/$ forumdisplay.php?f=175



That kinda sorta worked. It took me to the forum display page but the url in the address bar did not change. It remained the VBSEO url and my forum display was shown without any style applied, basically just a blank white page with the threads listed. It looked really messed up.

snakes1100 09-04-2013 10:38 PM

^/forum/boat-talk/$ http://www.mydomain.com/forum/forumdisplay.php?f=175


All times are GMT. The time now is 01:56 AM.

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.01064 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete