I have problem regarding redirect ,I want like when someone types http://picmagazines.com ,http://www.picmagazines.com,picmagazines.com ,It redirects to http://www.picmagazines.com only ,I added the code from http://www.jackborn.com/tools/canonical-urls.php in .htaccess file but it redirects to some strange url http://www.picmagazines.com/index.php?/ I need this to be http://www.picmagazines.com ,how I can correct that,please advice me ,this helps in SEO a lot...
below is the code of my .htaccess file
RewriteEngine on
RewriteCond $1 !^(index\.php|install\.php|robots\.txt|css\/|js\/|template\/|media\/|design\/)
RewriteRule ^(.*)$ /index.php?/$1 [L]
<IfModule mod_rewrite.c>
RewriteEngine on
# index.php to /
RewriteCond %{THE_REQUEST} ^GET\ /.*/index\.(php|html)\ HTTP
RewriteRule (.*)index\.(php|html)$ /$1 [R=301,L]
# force www.
rewritecond %{HTTP_HOST} ^picmagazines.com [nc]
rewriterule ^(.*)$ http://www.picmagazines.com/$1 [r=301,nc]
</IfModule>