Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter cheaplt

    (@cheaplt)

    Hi i am not sure but i think this code makes all urls https i could be wrong, i dont know how to route specific http to be https

    RewriteEngine On
    RewriteCond %{HTTPS} !on
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    Plugin Author AITpro

    (@aitpro)

    First you have to have a valid SSL Certificate. If you have a valid SSL Certificate then see the link below.

    https://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233

    Thread Starter cheaplt

    (@cheaplt)

    I am confused mate, your link doesn’t show me how to route specific http urls to an https. i look twice, could you please explain to me, sorry for inconvenience.

    Plugin Author AITpro

    (@aitpro)

    Do you want the entire site to be HTTPS or just certain areas of the site? You may want to consider creating an additional site that is going to be purely HTTPS otherwise you will have the problem of mixed content that is secure and insecure.

    Thread Starter cheaplt

    (@cheaplt)

    I do not want to make whole site https, i just need specific urls forced to run at https. my SSL certification is not fully secure because i have some urls running in http.

    Plugin Author AITpro

    (@aitpro)

    If it was my site what I would do is have all SSL content be under a folder such as /shop for example. I would create a separate image folder and have all other files, images, etc. contained to that SSL folder = /shop.

    Thread Starter cheaplt

    (@cheaplt)

    That is a great idea, how would i do that? and is it possible to do with Hta? Thank you mate, this is very useful.

    Plugin Author AITpro

    (@aitpro)

    Well in general the best site architecture is to compartmentalize things. That allows you to control each environment independently. Also you then would not have to create rules to allow this that or the other thing for sections of the site architecture that are doing other things. From a security standpoint, ideally everything should be compartmentalized – gives you better control and full control without negatively impacting another area of the site.

    So how I would go about this is I would install another site and make it purely SSL. To the end user your site will appear to be the same site, but it would actually be 2 sites that look identical – same theme, plugins, etc. So using “shop” as the example site and folder name. You would install another WordPress site in a folder called /shop. Then you can create your Menus with the WP menu editor so basically everything looks like 1 site to the end user.

    Plugin Author AITpro

    (@aitpro)

    Resolving.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Rerouting url http to https using BPS htaaccess’ is closed to new replies.