Total Pageviews

500 Internal Server Error (Wordpress 4.9 >)

500 Internal Server Error (Wordpress 4.9 >)

===========================================

Description: This error was caused when i deployed wordpress from local to live hosting.


1) First check the .htaccess file


Change From:

------------------

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /wordpress/

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /wordpress/index.php [L]

</IfModule>

# END WordPress



To:

--------------

# BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]


# END WordPress






2) Now i check the wp-config.php file



Change From:

----------------

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/wordpress');

define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/wordpress');


To:

-----------

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] );

define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );




3) Check the database parameters in wp-config.php file and correct them.


/** The name of the database for WordPress */

define('DB_NAME', 'bitnami_wordpress');


/** MySQL database username */

define('DB_USER', 'bn_wordpress');


/** MySQL database password */

define('DB_PASSWORD', '');



4) In phpmyadmin--> Check the Table: wp_options


Rename or update(siteurl, Home) from:

---------------------------------------------
http://127.0.0.1/wordpress




To:

-------
http://websitename.com