htaccess redirect www to non-www, htaccess redirect non-www to www

Home Forums BulletProof Security Pro htaccess redirect www to non-www, htaccess redirect non-www to www

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #31377
    Jen
    Participant

    [Topic has been merged into this relevant Topic]
    Hi, I’m trying to add the below code (301 redirect to cloudflare) to BPS security. This code has to go to the root location (mysite.com/htaccess) Could you please let me know which section under “Custom Code” I should add this code?

    Thank you!

    RewriteEngine On    
    RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
    RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
    #31379
    AITpro Admin
    Keymaster

    @ Jen – See the examples in this Reply in this same forum topic:  http://forum.ait-pro.com/forums/topic/htaccess-redirect-www-to-non-www-htaccess-redirect-non-www-to-www/#post-1723  I recommend that you use the code that we created instead of the code you posted.  For specific steps to add your non-www to www Rewrite code see this help section in the link above: “For BPS and BPS Pro specifically you would do these steps to add whichever Rewrite/Redirect code you want to use and save it to BPS Custom Code“.

    #31380
    Jen
    Participant

    Thank you so much!

    #34192
    yahoo_care
    Participant

    This is very informative and helpful.
    We are here to help you with any kind of issues related to your yahoo account. for support service contact us.our expert will assist you and in no delay, your problem will be resolved.
    https://yahoocustomerservice.co/

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.