Please read: https://codex.ww.wp.xz.cn/Moving_WordPress and specifically this part: https://codex.ww.wp.xz.cn/Moving_WordPress#If_You_Forget_to_Change_the_Locations
Most likely you’ll need to access the database and update the *_options table, specifically the “home” and “site_url” fields. The *_ would be equal to whatever database prefix you selected in your wp-config.php, which, by default, uses “wp_”
Also don’t ever edit the core WordPress files like index.php. This is a quick way to break things (not to mention the next WordPress update can overwrite your edits).
Please replace your edited version with a correct working version by downloading the latest version of WordPress, unzip it, and then re-upload the correct ‘index.php’ to replace your edited one.
Thread Starter
Tameto
(@tameto)
cool thanks a lot. i’ll have a look at that.
I actually edited index.php following that guide… 🙁
Well it’s not best practice to edit core WordPress files because, as I noted, the next time WordPress updates, those changes will be overwritten. That and if you mess up the code, you can end up with a broken WordPress site. 🙂
Thread Starter
Tameto
(@tameto)
AAAAAWESOME!!! I’m so happy u’re a legend.
I just had to change the blog url to the new website address.
Now… Obviously all the url’s of the pages are wrong as they refer to the old domain… is there a way to change them automatically or do i need to do it one per one??
Thanks again
T
Thread Starter
Tameto
(@tameto)
actually also changing the link i’m getting “Page not found” error…