Comment on WordPress 301 Redirects Tutorial by Rob.

Simple 301 Redirect Added to Default WordPress .htaccess File 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