Please give me a suggestion for my question.
when we set permalink in our site then the .htaccess code is
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
my site covert into http to https and i am adding below code to my .htaccess
RewriteRule ^index\.php$ - [L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_FILENAME} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_FILENAME} [L,R=301]
These codes are to redirect when we using www
or and http
then automatically convert into https:
So my problem is when we add this code to my .htaccess the post name or permalink is not working.
home page was showing and also we can see the wp-admin pages, And all other links (example.www.xyz.com/register) not working.
What i do? Please give your valuable suggestions and answers.