Title: Error in index.php
Last modified: August 30, 2016

---

# Error in index.php

 *  [Tameto](https://wordpress.org/support/users/tameto/)
 * (@tameto)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-in-indexphp-3/)
 * 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](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)

 *  [bemdesign](https://wordpress.org/support/users/bemdesign/)
 * (@bemdesign)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-in-indexphp-3/#post-6282653)
 * Please read: [https://codex.wordpress.org/Moving_WordPress](https://codex.wordpress.org/Moving_WordPress)
   and specifically this part: [https://codex.wordpress.org/Moving_WordPress#If_You_Forget_to_Change_the_Locations](https://codex.wordpress.org/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](https://wordpress.org/support/users/tameto/)
 * (@tameto)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-in-indexphp-3/#post-6282655)
 * cool thanks a lot. i’ll have a look at that.
 * I actually edited index.php following that guide… 🙁
 *  [bemdesign](https://wordpress.org/support/users/bemdesign/)
 * (@bemdesign)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-in-indexphp-3/#post-6282663)
 * 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](https://wordpress.org/support/users/tameto/)
 * (@tameto)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-in-indexphp-3/#post-6282664)
 * 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](https://wordpress.org/support/users/tameto/)
 * (@tameto)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/error-in-indexphp-3/#post-6282675)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [Tameto](https://wordpress.org/support/users/tameto/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/error-in-indexphp-3/#post-6282675)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
