vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New Domain Name - Problem (https://vborg.vbsupport.ru/showthread.php?t=300410)

trainer 07-24-2013 02:48 PM

New Domain Name - Problem
 
We changed to a new domain name

is there a way to make all the "oldSiteName" automatically replace with "newSiteName" in all the old posts and any future posts

Thanks for the help

fxdigi-cash 07-24-2013 03:23 PM

Quote:

Originally Posted by trainer (Post 2435116)
We changed to a new domain name

is there a way to make all the "oldSiteName" automatically replace with "newSiteName" in all the old posts and any future posts

Thanks for the help

I believe you need to redirect from old domain to new domain. all you need is .htaccess little coding.

by the way, when you say "replace with new domain name", you mean like this:

old domain:

PHP Code:

old-domain.com/vb/topic1 

new domain:

PHP Code:

new-domain.com/vb/topic1 

and you don't mean Google indexing.....or do you???

trainer 07-24-2013 03:53 PM

sorry mean in old posts

when people post oldSiteName we want it to show up as NewSiteName

exel 07-25-2013 07:00 AM

Actually did this on my forum today.

Here's the SQL:

Elite-Source being the old name.
GeneralBB being the new name.

Code:

UPDATE post SET pagetext = replace(pagetext, 'Elite-Source', 'GeneralBB')

Disco_Dave 07-25-2013 07:08 AM

Quote:

Originally Posted by trainer (Post 2435116)
We changed to a new domain name

is there a way to make all the "oldSiteName" automatically replace with "newSiteName" in all the old posts and any future posts

Thanks for the help


Everything you need to do can be done in here: Replacement Variable Manager


All times are GMT. The time now is 03:56 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.01028 seconds
  • Memory Usage 1,724KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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