Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Some media URLs are dynamically generated and should reflect your home/site URL settings. Others are hardcoded into other data. To fix hardcoded links, use the Better Search and Replace plugin to seek out such URLs and replace with the non-www version.

    There could also be links with www out in the wild, such as those indexed by search engines. To help search engines update their index, you should add .htaccess directives that do a 301 redirect to the non-www versions of any request. For example:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
    RewriteRule ^(.*)$ https://yourdomain.com/$1 [L,R=301]
Viewing 1 replies (of 1 total)
  • The topic ‘Media URLs not redirecting to non-www’ is closed to new replies.