• hi folks,

    I have been trying to get my blog at forexpm.com/blog to 301 redirect to https://www.forexpm.com/blog

    I want it to redirect to the WWW.

    I tried putting a 301 redirect in the root of my domain .htaccess using this code:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www.forexpm.com$ [NC]
    RewriteRule ^(.*)$ https://www.forexpm.com/$1 [L,R=301]

    but my blog doesn’t respond to this command. I know there is a .htaccess file in the /blog/ directory I am guessing this is overridding the .htaccess in the root. Can anybody help ?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirect domain to one URL’ is closed to new replies.