News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Primary domain name change

Started by nevsutt, November 02, 2012, 06:33:41 PM

Previous topic - Next topic

nevsutt

I set up a forum using a .co.cc domain as an experiment all works well
I now have registered a .com.au and have got my host to change my  primary domain name to this

Now my page is in plain text
I can assume some code is looking for the .co.cc

What do I need to change

Storman™

Run the Repair Settings tool.

That should do the trick.   ;)

nevsutt

Thanks that partly fixed it but stroll have code pointing to the .co.cc  ??
is there a way of fixing this withought wading thought every file??


mashby

Hmm...Settings.php should be the only file that references your domain. Unless you've edited your files to do that which is highly unlikely. Unless I'm not understanding what you mean by every file. Mind providing more details?
Always be a little kinder than necessary.
- James M. Barrie

nevsutt

When I go into the forum page I get the following error message

The server can not find the requested page:

makemea.co.cc/index.php?action=forum (port 80)




If I log in from the  home page it is in text

I can navigate to admin but some of the pages I get the above error


mashby

Can you get to the EZ Portal admin area? Or possibly it's in Sources/Subs.php, but yes, your Forum Home link is going to your old domain. I have a feeling it's in one of those two places.
Always be a little kinder than necessary.
- James M. Barrie

nevsutt

Ezportal is refering to the .com.au
Subs.php  cannot find any reference to .co.cc there either

mashby

Maybe clear out your site file cache?
Always be a little kinder than necessary.
- James M. Barrie

nevsutt


Colin

Any chance we can get a link to your site?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

nevsutt


mashby

How about index.template.php for the theme that's there? If you have checked Settings.php, EZPortal seems to use the settings from there $scripturl. Mind attaching Sources/Subs.php just for fun?
Always be a little kinder than necessary.
- James M. Barrie

nevsutt


nevsutt

Wow
Downloaded the site via a backup and ran a word seach with Agent Racksack (results file attached)


Might be easier to dump it all and start again

Storman™

Before you do that why not search for the "co.cc" string in PHPMYAdmin and then replace the relevant bits to read "com.au" . Much will be in log files which could ignored in most instances.

Depends on how much set-up you did on your site, starting again might take a while otherwise.

nevsutt

Thanks again but

update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, 'find this string', 'replace found string with this string');

What goes where
Im confused

Storman™

There's probably not that many, just edit the entries in each affected table manually.

smf_settings would be a start

I'd only take 10 minutes to go through it.

nevsutt

Thanks very much
Quote from: Storman™ on November 04, 2012, 07:37:47 AM
There's probably not that many, just edit the entries in each affected table manually.

smf_settings would be a start

I'd only take 10 minutes to go through it.

Thats fixed it (Mostly)
Took longer that 10 mins tho

All sorted

Advertisement: