vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   URL will change, can I prevent broken links? (https://vborg.vbsupport.ru/showthread.php?t=206009)

JayEss 02-20-2009 12:27 PM

URL will change, can I prevent broken links?
 
Hi all, I'll be moving my vb database to another server this weekend, and also onto a new domain name. Is there any way I can update the database so that all links referencing current domain name can be replaced with the new one? Cheers.

SEOvB 02-20-2009 01:41 PM

There are a few spots you'll need to change via the vBulletin Options -> Settings

You can use the replacement variable manager to handle changing http://domain1.com into http://domain2.com

Don't forget to get a htaccess for 301 redirects

JayEss 02-20-2009 02:02 PM

Ok, thanks for that. Do I change these options before I move my database or does it not make any difference?

Quote:

Originally Posted by FRDS (Post 1749905)
Don't forget to get a htaccess for 301 redirects

Sorry, can you elaborate on the above for me?

Dismounted 02-21-2009 04:00 AM

Code:

RewriteCond %{HTTP_HOST} ^olddomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]


JayEss 02-21-2009 11:33 AM

Thank you!

I also discovered this bit of info in the "moving servers" documentation for vb.

Quote:

Warning:
Specific cookie domains (Cookie Domain) and cookie paths (Path to Save Cookies) may cause problems if you are moving servers and changing the URL to your forums.

If you are unsure whether your cookie settings will cause problems after the move, we recommend resetting your cookie path to / and removing any cookie domain value before the move. An incorrectly set cookie domain or path will likely prevent you from accessing your control panel.
Do I need to take this into account, too? If I need to do this, can someone tell me how on earth I reset the cookie path?

--------------- Added [DATE]1235224176[/DATE] at [TIME]1235224176[/TIME] ---------------

Ok, I found where in vb options it can be reset, but I guess I would like to know whether I need to do this before the move or not?

--------------- Added [DATE]1235224555[/DATE] at [TIME]1235224555[/TIME] ---------------

Blah, just ignore me. I don't have any custom settings in the cookie path options and so this doesn't apply. Lol.

Dismounted 02-21-2009 11:56 AM

Do it before the move, otherwise you will not be able to login after the move.


All times are GMT. The time now is 02:12 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.01002 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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