WordPress at root level – set canonical url with htaccess?
-
We have this in the htaccess file, for the permalinks. I need to add setting the canonical URL to https://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.