Apache .htaccess file https:// redirect -— rewrite it for subdomain?

Add the following rule before the %{HTTPS} line: RewriteCond %{HTTP_HOST} ^support.domain. Com$ This will only allow the rule to execute if the visitor is coming from the subdomain. Please note, these rules will likely need to be put in the .

Htaccess file that is the root for the subdomain, not the main site root folder.

Sorry, but I meant subdirectory, not subdomain. Thanks – techuser7777777 Apr 8 at 6:28 thanks! Only thing is I asked the wrong question I think, because I am looking for a subdirectory, not a subdomain (site.Com/subdirectory vs subdomain.site.

Com) – techuser7777777 Apr 24 at 3:14.

If you want to redirect only a subfolder and not a subdomain, that is even easier. To redirect the subfolder /support/ you would use the following code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^/support/(.*)$ https://%{HTTP_HOST}/support/$1 QSA I added a QSA flag, which will force any query string that was entered to be appended to the redirect URL. If you don't use query strings in this section of the site, you can remove that flag.

Also, if the string as shown doesn't work, you can try removing the leading slash from the RewriteRule and retrying it.

If you want to redirect only a subfolder and not a subdomain, that is even easier. I added a QSA flag, which will force any query string that was entered to be appended to the redirect URL. If you don't use query strings in this section of the site, you can remove that flag.

Also, if the string as shown doesn't work, you can try removing the leading slash from the RewriteRule and retrying it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions