Tell me, is this code correct? or is there something left over from the default WordPress settings and can something be removed or replaced? You need to register correctly to make a mirror of the site from www.mysite.net on mysite.net

# BEGIN WordPress <IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^www.mysite.net$ [NC] RewriteRule ^(.*)$ http://mysite.net/$1 [R=301,L] RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress 
  • one
    I am not a guru for .htaccess , but it seems to me that RewriteEngine On should be placed above the other redirects. In general, there is a good snippet build for .htaccess on github . In general, you have the same as there proposed. - olegatro
  • Thank you, I will be glad if someone else shares their opinions .. - Beginner

0