I am trying to have a http redirection to https. Everything I see, seems to be real simple, but does not work both ways.
Domain = mydomain.com
Directory = payme
File = index.php
So, I have an .htaccess file in the directory payme that states:
Everything I read says that should work, but not.Code:<IfModule mod_ssl.c> SSLRequireSSL </IfModule> <IfModule !mod_ssl.c> # no non-ssl access Redirect permanent / https://www.mydomain.com/ </IfModule>
I also tried:
Code:Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.mydomain\.com RewriteRule ^(.*)$ http://mydomain.com/$1 [R=301] RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^index\.php$ https://mydomain.com/payme/ [R=301,L]



LinkBack URL
About LinkBacks



Reply With Quote





