• Hi, up until a few days ago i had a htaccess file in my root directory, making non www requests forward to https://www.domain i used this code below:

    Options FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yourdomain\.co\.uk$ [NC]
    RewriteRule (.*) https://www.yourdomain.co.uk/$1 [R=301,L]

    however now when this is in place the blog will not load at all, the blog is in a directory called blog, and in here is also another htaccess file with the following code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress

    because i dont understand htaccess very well im not sure if the 2 are conflicting with each other, any help would be great.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter fatcow321

    (@fatcow321)

    no problem thank you for trying to help anyway, i have just moved my domain back to the old ip, hopeing that it was solve the issue, now my domain wont work at all lol so im hoping its just going through the system,

    thanks again, im very grateful for your time.

    gpazi

    (@gpazi)

    Hi,
    I’ve encountered the same problem.
    Did you find a solution?
    Thanks,
    Guy

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘fixing Canonical URLs with htaccess’ is closed to new replies.