Forum Moderators: phranque
I have tried the code below, but with no success. Can you help correct this for me?
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^http://example.com/(.*)(/)? [web.example.com...] [R]
Thanks for any help
Chris
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)/?$ [web.example.com...] [R=301]
Hmmm, I think this should work for you, assuming I didn't make any typos. I'm sure jdMorgan will come in and make a change or two, he's always cleaning up after my mistakes :)