Forum Moderators: phranque

Message Too Old, No Replies

http wildcard

htaccess help required

         

Aigua

10:33 am on Oct 13, 2016 (gmt 0)

5+ Year Member



I'm changing my domain from http to https.

I require .htaccess code that forces HTTPS on all but one URL with a wildcard address in it: http://www.example.com/admin/

Can anybody provide some help?

thank you

[edited by: engine at 6:46 pm (utc) on Oct 13, 2016]
[edit reason] Please use example.com [/edit]

not2easy

8:03 pm on Oct 13, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hello Aigua and welcome to Webmaster World. The Apache Forum is a good place to learn about using rewrite rules, the Charter: [webmasterworld.com...] has links to the relevant Apache documentation. The Library: [webmasterworld.com...] has more information and examples. It is highly recommended reading so that you can understand what rules do and how they work. That can help you avoid a common problem of pasting things into your .htaccess file without understanding what you've done - and it is the reason we usually don't just hand out lines of code. If you need assistance with fine tuning then people can help.

I will share some links to previous discussions where similar questions were resolved and that may give you what you need, or at least the information you would need to get the exact results you want, and to know what your rule is doing (or not). See [webmasterworld.com...] which is older, but an example of one way to do what you want. This one is more recent: [webmasterworld.com...] but it is a rule for folders more than a specific page.