Comment on WordPress SEO Tutorial 2014 301 Redirects by Rob.

WordPress SEO 301 Redirects I’m using the EXACT same code as the word press example above, and all I ever get is an endless loop detected in the browser (any browser). Any suggestions?


#non-www to www start
RewriteEngine On
RewriteCond %{HTTP_HOST} !^$
RewriteRule (.*)$1 [R=301,L]
#non-www to www end
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress