Im trying to redirect all mydomain.com to www.mydomain.com to avoid SEO double indexing issues. Here is the code in my .htaccess file. Can anyone tell me where Im going wrong?
if I try to enter in the rewriterule my page will not load no matter what url I try.
```php
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.thinkoutsidetheshowroom.com [NC]
RewriteRule ^(.*)$ http://www.thinkoutsidetheshowroom.com/$1 [L,R=301]
RewriteRule ^$ http://www.thinkoutsidetheshowroom.com/index.php [L,R=301]
DirectoryIndex index.html index.php
RewriteEngine on
Some hostings require RewriteBase to be uncommented
Example:
Your store url is http://www.yourcompany.com/store/cart
So “RewriteBase” should be:
RewriteBase /store/cart
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} ./catalog/.
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
```