I just saw this list and thought about your question. Might be helpful. It's "A collection of useful .htaccess snippets, all in one place. I decided to create this repo after getting so tired (and bored) with Googling everytime there's a need of forcing www for my new website."
https://github.com/phanan/htaccess#force-https -Cameron On Thu, Feb 5, 2015 at 9:30 PM, Michael Brown <singleconce...@gmail.com> wrote: > Good Evening, > > I recently created site the requires a 301 redirect. I would like to > redirect all files with https://www.oldsite.com/*.* to > https://secure.newsite.com. Currently using the following in the > htaccess however it's not redirecting. Any suggestions? > > RewriteEngine on > RewriteCond %{HTTP_HOST} !^secure\.newsite\.com [NC] > RewriteCond %{HTTP_HOST} ^oldsite\.com [NC,OR] > RewriteCond %{HTTP_HOST} ^www\.oldsite\.com [NC] > RewriteRule ^(.*)$ https://secure.newsite.com/$1 [R=301,L] > > Thanks in advance for your help. > > -- > Michael Brown > > *"Do a Common Thing Uncommonly Well"* > > Direct Line - 770-605-5240 > > > > We Get Your Business Moving > http://www.techillo.com > > <http://www.linkedin.com/in/hotdeals> > > Twitter: http://www.twitter.com/singleconcepts > > Skype ID: "hotdealer" > > > > > -- Cameron Childress -- p: 678.637.5072 im: cameroncf facebook <http://www.facebook.com/cameroncf> | twitter <http://twitter.com/cameronc> | google+ <https://profiles.google.com/u/0/117829379451708140985>