• Hi there,

    I’m trying to apply a redirect globally on a website for SEO purposes. The index page automatically redirects to http://www.domain.co.uk – but other pages it doesnt. So it seems the only page which has the redirect is the index.

    Below is the code for the .htaccess – with the domain obviously going where domain is.

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

    # END WordPress

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^domain.co.uk [NC]
    RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [R=301,L]

    I have a feeling it’s to do with the WordPress configuration and not the htaccess file. Can anyone point me in the right direction?

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Htaccess and redirects’ is closed to new replies.