News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Moved forum now "new topic" etc. still has old forum's link

Started by 420Connect.co.uk, September 11, 2014, 01:19:05 PM

Previous topic - Next topic

420Connect.co.uk

Hello,

Thanks for taking the time to help out!

Basically I've managed to backup and restore my forum - or so I thought..
Somewhere along the way I must have missed something as now when on my new domain & forum, when you click post new topic etc. if redirects to my old forum.

I've tried re-running repair_settings.php to check my paths but they all seem okay?

Much appreciated if there's an easy fix someone can point me to / detail


Thanks
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

420Connect.co.uk

Solved this myself.

For future reference;

I found where the old forum url was still integrated into the forum by searching via phpmyadmin
I then could see where the url's still hadn't been updated yet - mainly in Pretty URL's mod.
change them over (uninstall, then reinstall pretty url's) and thats us :)
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Kindred

yes...

repair_settings only fixes the standard feature and settings.

It will not "fix" prettyurls at all.
it will not "fix" any links in posts or in mods...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

420Connect.co.uk

I'm now attempting to change my forum's location from

/public_html/forum
to just /public_html/

am I right to just copy over the forum folders files directly to public_html then re-run repair_setting.php ?

many thanks.
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

420Connect.co.uk

Awesome Possum!  ;D

(no doubt I'll be back soon for something similar!) :P
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Night09

There is a way ive used before to Query the database to find all instances of abc and convert them to xyz.

You basically should be able to have the messages table update all old urls for the new ones to make posts with old forum links relevant to the new one.

Something like this:

Update smf_messages SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com');

There may be a couple of places (tables) this needs running on depending whats wrong and what you have installed.

420Connect.co.uk

Quote from: Night09 on September 11, 2014, 04:13:33 PM
There is a way ive used before to Query the database to find all instances of abc and convert them to xyz.

You basically should be able to have the messages table update all old urls for the new ones to make posts with old forum links relevant to the new one.

Something like this:

Update smf_messages SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com');

There may be a couple of places (tables) this needs running on depending whats wrong and what you have installed.

If anyone could elaborate on how to do this, that'd be great as after moving from /forum/ to public_html
I now have a further 2000+ instances needing changed :(

Thanks again!
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Night09

Run the query in phpmyadmin in the query box. Make sure you have backed up before making any changes.

Replace old domain and new domain with those relevant to you.

Once its run the Query it should change all instances found if successful.

Advertisement: