Specific page rule HTTP-to-HTTPS
5 posts
• Page 1 of 1
- kyle@resposio
- Posts: 3
- Joined: 10 Apr 2015, 12:53
Specific page rule HTTP-to-HTTPS
I have a page on my site: http://www.mysite.com/mypage.aspx. I need this page to always be HTTPS.
I already have already found and implemented a rule to redirect the entire directory, but I would like to have a page-specific rule for the URL above.
Is this something ISAPI can do?
I already have already found and implemented a rule to redirect the entire directory, but I would like to have a page-specific rule for the URL above.
Is this something ISAPI can do?
Re: Specific page rule HTTP-to-HTTPS
Sure, it is possible:
RewriteCond %{HTTPS} ^(?!on).* [NC]
RewriteRule ^mypage\.aspx$ https://www.mysite.com/mypage.aspx [NC,R=301,L]
RewriteCond %{HTTPS} ^(?!on).* [NC]
RewriteRule ^mypage\.aspx$ https://www.mysite.com/mypage.aspx [NC,R=301,L]
- kyle@resposio
- Posts: 3
- Joined: 10 Apr 2015, 12:53
Re: Specific page rule HTTP-to-HTTPS
ThankS Anton!!
Worked like a charm and I was also able to do this for 2 other URL's as well. You're genius!
Worked like a charm and I was also able to do this for 2 other URL's as well. You're genius!
- Theyeaterve39
- Posts: 1
- Joined: 17 Apr 2015, 04:12
Re: Specific page rule HTTP-to-HTTPS
Worked fine! Thanks
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests