0 votes
242 views
by (1.5k points)

I have migrated my website to different host. After moving all files and folders to new host, I try to open website. Badluckly it unable to open. Instead it firing following error. Please help me.

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@example.com to inform them of the time this error occurred, and the actions you performed just before this 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.

1 Answer

0 votes
by (10.3k points)

I too face this type of problem when migrated the site. At that time I have faced such error due to wrong file permission level. 

File Permission issue

Check file permission of the file, it must as follows below permission level. If they are not as follow then you can change the file permission.

  1. public_html -750
  2. Folders - 755
  3. .php .html & other script file - 644

To changing the file permission in the bulk, you should use FTP client like FileZilla. Because mass changing via cPanel takes much time.

 

.htaccess file issue

In most cases corrupted .htaccess or miswritten script may be the reason behind internal server error. For evaluating the performance of the current .htaccess file, first backup or copy .htaccess file data in a safe place. Now replace .htaccess file content with following script

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

Remember that some other essential scripts added in .htaccess file by plugins, mostly by security and cache related plugins are necessary. So, be sure to read them one by one for the proper functioning of your WordPress site. 

Additionally, you can try to replace the current WordPress core file with newly downloaded ZIP for the official WordPress site. Again, take care to backup of directory public_html before going further. Most importantly take backup of the wp-config.php file. Replacing also one the useful solution if the above solution did not work.

Hope it will helpful to you. If you have another solution then please mention it. 

...