Specific page rule HTTP-to-HTTPS

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 10 Apr 2015, 12:53

Specific page rule HTTP-to-HTTPS

13 Apr 2015, 11:10

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?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Specific page rule HTTP-to-HTTPS

13 Apr 2015, 15:33

Sure, it is possible:

RewriteCond %{HTTPS} ^(?!on).* [NC]
RewriteRule ^mypage\.aspx$ https://www.mysite.com/mypage.aspx [NC,R=301,L]

User avatar
Posts: 3
Joined: 10 Apr 2015, 12:53

Re: Specific page rule HTTP-to-HTTPS

13 Apr 2015, 16:03

ThankS Anton!!

Worked like a charm and I was also able to do this for 2 other URL's as well. You're genius! :lol:

User avatar
Posts: 1
Joined: 17 Apr 2015, 04:12

Re: Specific page rule HTTP-to-HTTPS

17 Apr 2015, 04:16

Worked fine! Thanks :mrgreen:

User avatar
Posts: 1
Joined: 10 Jun 2015, 15:34

загрузити скайп на телефон

10 Jun 2015, 15:34

Вы не ошиблись, верно

---

Keys Manager здесь.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 21 guests