HTTPS .htaccess for WordPress in Sub-Folder

//HTTPS .htaccess for WordPress in Sub-Folder
<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} ^(www.)?example.org$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /subfolder/$1
RewriteCond %{HTTP_HOST} ^(www.)?example.org$
RewriteRule ^(/)?$ cads/index.php [L] 
</IfModule>

#this is for https
RewriteCond %{HTTP_HOST} example\.org [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^/subfolder/(.*)/$ https://www.example.org/$1 [R,L]

 

By |2019-01-23T16:41:53+00:00January 23rd, 2019|Computers and Internet|0 Comments

Leave A Comment