I had a client contact me regarding their urls which were still using the temp ip address when the site was first designed. We got the CMS up and running before they handed over the domain hence this situation.
I found a post on here earlier that said that all that was required was searching for 'root' in the config.php file and change the address accordingly. I did this and now I just have a small wall of code on any page I try and visit on the site. It appears I've done something wrong. I changed the root url and the ssl url which I don't know if I should've done or not.
The website is richardshakespeare.com and if you visit you'll see the mess I'm in. I've tried putting the original temp address in there but it's not working.
Any advice will be greatly appreciated as it'll take alot of time to rebuild. Maybe a fresh install with a database backup may be a solution if anyone could point me in the right direction of doing this lol.
Thanks for your time,
Dan.
Problem changing root url
Re: Problem changing root url
The config.php file looks like it was corrupted when you edited it.
Make a backup of your database!
Then restore the install/ folder and run through the install process again. On step 5 uncheck the "Create Tables" and "Install Default Content" questions on the bottom.
That should rewrite the config.php file and you should be all set.
Jeff
If you accidentally forgot to uncheck the boxes then you will need to restore the db from the backup you made.
Make a backup of your database!
Then restore the install/ folder and run through the install process again. On step 5 uncheck the "Create Tables" and "Install Default Content" questions on the bottom.
That should rewrite the config.php file and you should be all set.
Jeff
If you accidentally forgot to uncheck the boxes then you will need to restore the db from the backup you made.
Re: Problem changing root url
It looks like the beginning <?php is gone?
Re: Problem changing root url
Hi thanks alot guys.
Feel silly for not spotted the alterations in there myself now. I've restored the php tags and we're back up and running. I wonder what the chances are that went unnoticed by the client
I used an edit function through the host file management panel and got a slap for it. Thanks again for taking a look.
Cheers,
Dan.
Edit: I have no idea to set this to solved so apologies if anyone wastes their time checking this out from this point.
Feel silly for not spotted the alterations in there myself now. I've restored the php tags and we're back up and running. I wonder what the chances are that went unnoticed by the client

I used an edit function through the host file management panel and got a slap for it. Thanks again for taking a look.
Cheers,
Dan.
Edit: I have no idea to set this to solved so apologies if anyone wastes their time checking this out from this point.
Re: Problem changing root url
You might want to change your database password.. It was there for all to see.