Hot answers tagged

4

Many default SSL setup have settings to ignore .htaccess at all. So server use your .htaccess for http, but for security reason ignore default rules overwrite for https. Check your ssl config (try - /etc/httpd/conf.d/ssl.conf) what flag you have for AllowOverride? Possible you have None - in this case, the server will not even attempt to read .htaccess ...


2

Try this :: 1.) Go to your SSL configuration file : /etc/httpd/conf.d/ssl.con 2.) Find your Virtual Host : <VirtualHost_default_:443> 3.) Write down : Path to your directory <Directory "/var/www/html/magento"> AllowOverride All </Directory> 4.) Restart your apache : service httpd restart


1

This is what we use to redirect a directory to a subdomain RewriteRule ^trade* http://trade.domain.com/ [R=301,L]


1

Try a RedirectMatch rule and see what you get: RedirectMatch 301 ^/store/?$ http://store.example.com


Only top voted, non community-wiki answers of a minimum length are eligible