Follow is the code
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
#force https
RewriteCond %{REQUEST_URI} subfolder
RewriteRule ^(.*)$ https://www.fdhlpk.com/subfolder/$1 [R,L]
#Remove www from the URL
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
#force https
RewriteCond %{REQUEST_URI} subfolder
RewriteRule ^(.*)$ https://www.fdhlpk.com/subfolder/$1 [R,L]
#Remove www from the URL
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]
No comments:
Post a Comment