-1

I need to redirect all traffic like the following:

mydomain.com/a/b/c => www.mydomain.com/a/b/c

All url info should be reserved and only domain is modified.

Thanks.

Sam

Sam Kong
  • 5,472
  • 8
  • 51
  • 87

1 Answers1

1

Something like:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mudomain.com[nc]
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc]
Bruno Lowagie
  • 75,994
  • 9
  • 109
  • 165