I have a website that I have created on one of its folders. Now I want to delete the site with the command. My page is located here
remove www in htaccess for directory
98 Views Asked by Mpzed At
2
There are 2 best solutions below
0
On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://example.ir%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS}s ^on(s)|
RewriteCond http%1://%{HTTP_HOST}%{REQUEST_URI} ^(https?://)www\.(.+) [NC]
RewriteRule ^ %1%2 [L,R,QSA]
first code : delete http and set to https and next code : delete https://www and set to https://
if I've understood your question (and please make it more clear this time and next times :) ) you can do it like this :
Or
have a nice iranian day !