Category

Wordpress

Category

Paste the following line in your wp-config.php if ($_SERVER[’HTTP_X_FORWARDED_PROTO’] == ‘https’) $_SERVER[’HTTPS’]=’on’; but make sure that you do it before the following line require_once(ABSPATH . ‘wp-settings.php’);

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> You need to add this line RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Check if your hosting mod_rewrite is enabled by creating a file phpinfo.php with content.Set the permalink structure Go to Dashboard > Settings > Permalinks and choose “Custom Structure” option and enter in the field: /%postname%/ and click on the Save Changes button. Edit your .htaccess file Copy the following directive into your .htaccess file which is located in the root of your website folder: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$…