• Resolved myeclecticself

    (@myeclecticself)


    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 https://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.

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

    (@myeclecticself)

    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.

    Thread Starter myeclecticself

    (@myeclecticself)

    Not sure exactly what happened during the function.php edit to mess up the “https://example.com” but since “https://www.example.com” 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 ^(.*)$ https://www.example.com/$1 [L,R=301,NC]

    ***Be sure to change example to your site name.

    Thread Starter myeclecticself

    (@myeclecticself)

    Not sure exactly what happened during the function.php edit to mess up the “https://example.com” but since “https://www.example.com” 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 ^(.*)$ https://www.example.com/$1 [L,R=301,NC]

    ***Be sure to change example to your site name.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page not loading after functions.php edit’ is closed to new replies.