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
.htaccess, but it seems to me thatRewriteEngine Onshould be placed above the other redirects. In general, there is a good snippet build for.htaccessongithub. In general, you have the same as there proposed. - olegatro