Title: Page not loading after functions.php edit
Last modified: June 1, 2017

---

# Page not loading after functions.php edit

 *  Resolved [myeclecticself](https://wordpress.org/support/users/myeclecticself/)
 * (@myeclecticself)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/page-not-loading-after-functions-php-edit/)
 * Last night I was making some edits to the functions.php. In the end I got everything
   working fine and how I need it to. However, one of my pages [http://uprisingreview.com/stories](http://uprisingreview.com/stories)
   is coming back with a 500 error. However, it is working on a few browsers as 
   well as on mobile. I wondered it if was a theme issue, so I switched to Twenty
   Seventeen and still got the same error. On Firefox, the stories page is loading
   fine, but the homepage is not loading.
 * Update: www. url’s are all working fine. Any link that does not reroute to www
   is not loading.
    -  This topic was modified 8 years, 11 months ago by [myeclecticself](https://wordpress.org/support/users/myeclecticself/).
    -  This topic was modified 8 years, 11 months ago by [myeclecticself](https://wordpress.org/support/users/myeclecticself/).

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

 *  [sinip](https://wordpress.org/support/users/sinip/)
 * (@sinip)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/page-not-loading-after-functions-php-edit/#post-9188929)
 * Homepage is loading but completely blank. And /stories does load. Well, whatever
   you did to `functions.php` it wasn’t done properly.
 *  Thread Starter [myeclecticself](https://wordpress.org/support/users/myeclecticself/)
 * (@myeclecticself)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/page-not-loading-after-functions-php-edit/#post-9188939)
 * Thanks genius! That much is fairly obvious. Although I essentially just reverted
   it to what I had in there before. Since the site is working fine on www I’m assuming
   it was an issue with an edit I was trying to make that messed up something. What
   is in there now was copied directly from the WordPress Codex.
    -  This reply was modified 8 years, 11 months ago by [myeclecticself](https://wordpress.org/support/users/myeclecticself/).
    -  This reply was modified 8 years, 11 months ago by [myeclecticself](https://wordpress.org/support/users/myeclecticself/).
 *  Thread Starter [myeclecticself](https://wordpress.org/support/users/myeclecticself/)
 * (@myeclecticself)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/page-not-loading-after-functions-php-edit/#post-9188976)
 * Not sure exactly what happened during the function.php edit to mess up the “[http://example.com&#8221](http://example.com&#8221);
   but since “[http://www.example.com&#8221](http://www.example.com&#8221); was 
   working fine, I just added this code to my .htacccess so that it would just load
   the www version of the site. That might not be a textbook solution, but the site
   works.
 *     ```
       #Force www:
       RewriteEngine on
       RewriteCond %{HTTP_HOST} ^example.com [NC]
       RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
       ```
   
 * ***Be sure to change example to your site name.
    -  This reply was modified 8 years, 11 months ago by [myeclecticself](https://wordpress.org/support/users/myeclecticself/).
 *  Thread Starter [myeclecticself](https://wordpress.org/support/users/myeclecticself/)
 * (@myeclecticself)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/page-not-loading-after-functions-php-edit/#post-9188978)
 * Not sure exactly what happened during the function.php edit to mess up the “[http://example.com&#8221](http://example.com&#8221);
   but since “[http://www.example.com&#8221](http://www.example.com&#8221); was 
   working fine, I just added this code to my .htacccess so that it would just load
   the www version of the site. That might not be a textbook solution, but the site
   works.
 *     ```
       #Force www:
       RewriteEngine on
       RewriteCond %{HTTP_HOST} ^example.com [NC]
       RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]
       ```
   
 * ***Be sure to change example to your site name.
    -  This reply was modified 8 years, 11 months ago by [myeclecticself](https://wordpress.org/support/users/myeclecticself/).

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

The topic ‘Page not loading after functions.php edit’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [myeclecticself](https://wordpress.org/support/users/myeclecticself/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/page-not-loading-after-functions-php-edit/#post-9188976)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
