Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a domain abc.com and domain has no SSL. Also there is folder "test" under the public_html. (abc.com/test). So I want to redirect all requests to https://abc.com/test to http://abc.com/test .

So Please let me know the rule which i need to add on htaccess file.

Thanks is advance.

share|improve this question

1 Answer 1

Something like this i guess:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
share|improve this answer
    
Rather check %{HTTPS} ^on$ –  mgorven Feb 28 '13 at 0:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.