Page 1 of 1

Help! wordpress site gives errirs for all inks except front page

Posted: Wed Nov 14, 2018 1:36 pm
by Pbrinton
My site, patrickbrinton.com, which has been working fine up to now, and which I have not changed since it was last working, is suddenly giving me this error on all the links except the front page:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@sonic.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Tech support says everything seems to be fine, and said to post here. This is a serious issue for me as I have been giving out the link to a lot of people. Any help much appreciated.

Re: Help! wordpress site gives errirs for all inks except front page

Posted: Wed Nov 14, 2018 3:15 pm
by drew.phillips
Hi Patrick,

It looks like WordPress was originally installed to /blog but may have been moved into the root directory of the site.

It looks like the fix is to change the WordPress rewrite rules from referencing /blog to this:

Code: Select all

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
The cause for the error is that it is trying to rewrite to /blog/index.php but that file doesn't exist so it causes the server error.

Those edits should get the site back in working order. It looks like the WP_SITEURL in wp-config.php has already been changed to the right thing.

Based on some of the file dates, did things get moved around November 2nd?