Disabling unsecured access for a single URL on an instance of apache

advertisements

For example, one instance of apache is managing

www.site.com/folder1/a.html

www.site.com/folder2/b.html

www.site.com/folder3/c.html

I need to make sure that access to www.site.com/folder3/c.html is https only.

All these folders are in the same document root.

Is this possible? If not, what you recommend as the minimum changes necessary in order to get what I want?


I believe you can do something in the Apache configuration like:

RedirectMatch /folder3/(.*) https://www.site.com/folder3/$1

Not sure if that's proper though.

Hope that helps...