WordPress.org

Forums

WordPress at root level - set canonical url with htaccess? (1 post)

  1. hyperarts
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic