| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Thu Aug 17, 2006 5:39 am Post subject: how can i replace link in database |
|
|
hello
i have another question
i want replace some link in database with a SQL query
i want replace this text in database
-http://www.siscenter.com/forum/
with
-http://forum.siscenter.com/
we need to install forum in subdomain
i need a SQL query
whats that SQL query ? |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 515 Location: Michigan
|
Posted: Thu Aug 17, 2006 6:42 am Post subject: Re: how can i replace link in database |
|
|
Hello, you will want to backup your entire phpbb root folder -- files and SQL ect. get rid of the "froum" directory and create a subdomain called "forum" ( I use Cpanel, not sure what you use ) and then install your phpbb and upload your backups to the new subomain called "forum"... another words, it's like moving your entire board.
I hope that is what you were asking. |
_________________ Juarol.com
| Frekuenciadigital.com | |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Thu Aug 17, 2006 6:57 am Post subject: Re: how can i replace link in database |
|
|
hello
i don't have problem with changing address
our forum was installed on this address for 2 years
-http://www.siscenter.com/forum/
if we change the address we will have lots of internal broken link
we need a quey for replacing old form link with new one |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15135
|
Posted: Thu Aug 17, 2006 9:31 am Post subject: Re: how can i replace link in database |
|
|
It's not that simple, you need ot select every single post, make sure the link is in there and update if necessary.
Depending on how big the forum is, it can be a pain to avoid timeouts.
A simple trick would be to edit a db backup (only the post_text table), and use the replace command of your favorite text editor (a decent one is required here, no word-pad nor note pad here) on it before you put it back online.
Search for the entire string to make it safe : -www.siscenter.com/forum and replace with -forum.siscenter.com, should be shorted than writing down the sql script to do it for you
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
|
| Back to top |
|
 |
falkra PR1


Joined: 11 Mar 2007 Posts: 174
|
Posted: Tue Jun 05, 2007 3:25 pm Post subject: Re: how can i replace link in database |
|
|
Sorry to bump here, but would this work (online, not on local table backup) ?
UPDATE phpbb_posts_text SET post_text = REPLACE(post_text, 'oldstring', 'newstring'); |
_________________
 |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |