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>

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.