• Hi everyone.

    I was moving my website from a subdomain to the main domain and after editing index.php instead of my proper website i see just this http://www.saleolio.com

    I don’t know where to begin looking for the mistake…

    any help?

    Thanks

    T

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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…

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error in index.php’ is closed to new replies.