I'd like all requests for "http://{myserver}/civicrm" to go to "https://{myserver}/civicrm".
Is there an easy mod_rewrite condition/ruleset I can use to make this happen? Also, if it matters, civicrm is not a real directory in my apache file structure, it's a part of my content management system.
g1smd
8:13 pm on Jan 21, 2009 (gmt 0)
Check the sticky threads at the top of the forum.
This must be among the "top 5" questions asked here. :)
obrienmd
8:17 pm on Jan 21, 2009 (gmt 0)
Sorry, don't see the sticky thread... Am I blind?
jdMorgan
8:27 pm on Jan 21, 2009 (gmt 0)
Probably referring to the "Search WebmasterWorld" link at top left, or the Apache Forum Library.
Is {myserver} a variable, or is it a fixed-value hostname?
In other words, would the proposed code apply to more than one single domain or subdomain (e.g. "www")?
Jim
[edited by: jdMorgan at 8:29 pm (utc) on Jan. 21, 2009]
obrienmd
8:38 pm on Jan 21, 2009 (gmt 0)
myserver is a fixed-value hostname, removed on this forum for anonymity
I've read through many of those search results, and they would absolutely solve my problem if I had a subdirectory to put the additional .htaccess file into. However, I'm using a CMS for this site, so the path isn't really pointing to a subdirectory.