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]
7 Years
Discussion Span
Last Post by Gewalop

just remove the first 3 lines
edit: although I'm not sure what kind of links are you using, are they all rewritten?
edit: are you using this : index.php?recent (or anything like that), if not.. then go ahead and remove the first 3 lines

Edited by Gewalop: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.