Title: Internal Server Error after migration
Last modified: December 30, 2018

---

# Internal Server Error after migration

 *  [eyeghoti](https://wordpress.org/support/users/eyeghoti/)
 * (@eyeghoti)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/internal-server-error-after-migration/)
 * I’m trying to manually move a site from a subdirectory to the root directory
   
   From [http://www.sa-fc.org.uk/revamp/](http://www.sa-fc.org.uk/revamp/) to [http://www.sa-fc.org.uk/](http://www.sa-fc.org.uk/)
   I keep getting Internal Server Error messages.
 * See bellow for what I’ve tried so far …
    (NB The site is currently behind a “
   This site is undergoing maintainence” plugin page.)
 * Using FTP I’ve moved all the content
    from public_html/revamp/ to public_html/
 * Using phpMyAdmin, I have edited two parts of _wp\_options_
    Both _siteurl_ and
   _home_ from [http://www.sa-fc.org.uk/revamp/](http://www.sa-fc.org.uk/revamp/)
   to [http://www.sa-fc.org.uk/](http://www.sa-fc.org.uk/)
 * I then used the Velevet Blues plugin to rewrite URLs
    from wwww.sa-fc.org.uk/
   revamp/ to wwww.sa-fc.org.uk/
 * I have access to the WP dashboard and can access all the pages / posts / media
   fils / etc within the dashboard. As far as I can see the respective URLs all 
   comply with the new location.
 * BUT …
    If I try to access or even Preview, I get 500 Internal Server Error messages.
   I suspect there is something I need to do to the SQL database.
 * I found the following SQL query
    `UPDATE wp_posts SET post_content = REPLACE(
   post_content, 'localhost/test/', 'www.yourlivesite.com/');` But that didn’t help.
   I wonder whether that is because _post\_content_ doesn’t change everythng that
   needs to change.
 * Any suggestions?
    -  This topic was modified 7 years, 4 months ago by [eyeghoti](https://wordpress.org/support/users/eyeghoti/).
    -  This topic was modified 7 years, 4 months ago by [eyeghoti](https://wordpress.org/support/users/eyeghoti/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finternal-server-error-after-migration%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * (@toppahattu)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/internal-server-error-after-migration/#post-11037506)
 * You have one w too much in the address (`wwwww`).
 * PS. Is the path right in the `wp-config.php` file?
 * > /** WordPress absolute path to the WordPress directory. */
   >  if ( !defined(‘
   > ABSPATH’) ) define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
    -  This reply was modified 7 years, 4 months ago by [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/).
 *  Thread Starter [eyeghoti](https://wordpress.org/support/users/eyeghoti/)
 * (@eyeghoti)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/internal-server-error-after-migration/#post-11037548)
 * The ‘wwwww’ is a typo in this thread only. (Appologies for that. Not helpful,
   I realise.)
 * The code you list is exactly the same in the ‘wp-config.php’ file (although it
   is commented as
 * > /** Absolute path to the WordPress directory. */
 *  [wp-muhkiainen](https://wordpress.org/support/users/toppahattu/)
 * (@toppahattu)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/internal-server-error-after-migration/#post-11037568)
 * [Changing The Site URL](https://codex.wordpress.org/Changing_The_Site_URL)
 *  Thread Starter [eyeghoti](https://wordpress.org/support/users/eyeghoti/)
 * (@eyeghoti)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/internal-server-error-after-migration/#post-11037739)
 * The only difference I can see in that page that isn’t covered by what I’ve done
   is that there shouldn’t have been a slash at the end of the respective URLs for
   _siteurl_ and _home_ in _wp\_options_.
    (Unfortunately another typo in my post
   above, a subtlety I had not spotted, so appologies again, but one that won’t 
   work.)

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

The topic ‘Internal Server Error after migration’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [eyeghoti](https://wordpress.org/support/users/eyeghoti/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/internal-server-error-after-migration/#post-11037739)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
