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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -