Mydomain.com to www.mydomain.com?

Actually I only got this line in my .htaccess:

redirect 301 /smf clanscp.com

And works fine !

But also I want redirect all my clanscp.com to clanscp.com , this should work:

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^clanscp.com [nc]
rewriterule ^(.*)$ clanscp.com/$1 [r=301,nc]

But It aint works :S

Any help is welcome.

TIA

replace the

Options +FollowSymlinks
with

[code]#Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^clanscp.com [nc]
rewriterule ^(.*)$ http://www.clanscp.com/$1 [r=301,nc]

redirect 301 /smf http://www.clanscp.com[/code]

works fine, thx a lot :slight_smile: