Support » Fixing WordPress » WordPress at root level – set canonical url with htaccess?

  • hyperarts

    (@hyperarts)


    We have this in the htaccess file, for the permalinks. I need to add setting the canonical URL to http://www.domain.com

    Our current htaccess directive:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    What do I need to add? Thanks!

  • The topic ‘WordPress at root level – set canonical url with htaccess?’ is closed to new replies.