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

Web hosting discussion, programming, and shared and dedicated servers.
2 posts Page 1 of 1
by Pbrinton » Wed Nov 14, 2018 1:36 pm
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.
by drew.phillips » Wed Nov 14, 2018 3:15 pm
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?
Drew Phillips
Programmer / System Operations, Sonic.net
2 posts Page 1 of 1

Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)
Most users ever online was 422 on Sat May 26, 2012 5:28 am

Users browsing this forum: No registered users and 7 guests