Title: Rerouting url http to https using BPS htaaccess
Last modified: August 21, 2016

---

# Rerouting url http to https using BPS htaaccess

 *  Resolved [cheaplt](https://wordpress.org/support/users/cheaplt/)
 * (@cheaplt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/)
 * Hello AITPro
 * I am trying to reroute some urls that are http to https.
    The current SSL certificate
   isn’t secure with certain urls being https, i have seen a couple of codes online
   for hta access that can re route urls but im not sure if they will break website.
 * how would i go about rerouting these urls to https using hta?
 * Insecure URL: [http://www.domain.com/wp-content/uploads/2013/09/qwer.ico](http://www.domain.com/wp-content/uploads/2013/09/qwer.ico)
   
   Found in: [https://www.domain.com/my-account/](https://www.domain.com/my-account/)
 * Insecure URL: [http://www.domain.com/wp-content/uploads/2013/08/bg5.jpg](http://www.domain.com/wp-content/uploads/2013/08/bg5.jpg)
   
   Found in: [https://www.domain.com/my-account/](https://www.domain.com/my-account/)
 * Insecure URL: [http://www.domain.com/wp-content/uploads/2013/08/logoClt.png](http://www.domain.com/wp-content/uploads/2013/08/logoClt.png)
   
   Found in: [https://www.domain.com/my-account/](https://www.domain.com/my-account/)
 * Insecure URL: [http://www.domain.com/wp-content/uploads/2013/07/Plat-division-3-120×120.png](http://www.domain.com/wp-content/uploads/2013/07/Plat-division-3-120×120.png)
   
   Found in: [https://www.domain.com/my-account/](https://www.domain.com/my-account/)
 * Insecure URL: [http://www.domain.com/wp-content/uploads/2013/07/challenger_1.png](http://www.domain.com/wp-content/uploads/2013/07/challenger_1.png)
   
   Found in: [https://www.domain.com/my-account/](https://www.domain.com/my-account/)
 * Insecure URL: [http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700](http://fonts.googleapis.com/css?family=Open+Sans:400,800,300,700)
   
   Found in: [https://www.domain.com/ext/revslider/rs-plugin/css/captions.css](https://www.domain.com/ext/revslider/rs-plugin/css/captions.css)
 * >  King Regards,
 * [http://wordpress.org/plugins/bulletproof-security/](http://wordpress.org/plugins/bulletproof-security/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [cheaplt](https://wordpress.org/support/users/cheaplt/)
 * (@cheaplt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207719)
 * 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://%](https://%){
   > HTTP_HOST}%{REQUEST_URI}
 *  Plugin Author [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207734)
 * First you have to have a valid SSL Certificate. If you have a valid SSL Certificate
   then see the link below.
 * [http://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233](http://forum.ait-pro.com/forums/topic/wordpress-ssl-htaccess-code-rewrite-ssl-rewritecond-server_port/#post-7233)
 *  Thread Starter [cheaplt](https://wordpress.org/support/users/cheaplt/)
 * (@cheaplt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207765)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207787)
 * 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](https://wordpress.org/support/users/cheaplt/)
 * (@cheaplt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207791)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207795)
 * 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](https://wordpress.org/support/users/cheaplt/)
 * (@cheaplt)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207796)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207799)
 * 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](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207835)
 * 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.

 * ![](https://ps.w.org/bulletproof-security/assets/icon-128x128.png?rev=1731938)
 * [BulletProof Security](https://wordpress.org/plugins/bulletproof-security/)
 * [Support Threads](https://wordpress.org/support/plugin/bulletproof-security/)
 * [Active Topics](https://wordpress.org/support/plugin/bulletproof-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bulletproof-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bulletproof-security/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/rerouting-url-http-to-https-using-bps-htaaccess/#post-4207835)
 * Status: resolved