Apache rewrite from root folder, force https -
i redirect traffic mysite.com mysite.com/folder, enforce ssl on pages.
currently have in httpd.conf found sample somewhere, don't think working correctly of time.
rewriteengine on rewriterule ^/$ https://www.mysite.com/folder/ [r]
the ^/$ matches if request /, i.e. root of site. else not matched it. try .* instead.
note: if rewrite rule active both http , https version, that'll send infinite redirect loop. in case, may need kind of rewritecond test, too.
Comments
Post a Comment