Forum Moderators: travelin cat

Message Too Old, No Replies

htacess

Permanently redirect example.com to www.example.com

         

webadmin123

7:11 am on May 2, 2005 (gmt 0)



i want if some one type example.com in browser address bar ,then my htaccess should force it to [example.com...]

i used the following line in my htaccess

but it saying internal error

RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) [example.com...] [R=301,L]

pls help me...

jd01

7:20 am on May 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi webadmin123,

You might want to check out the Apache forum... you should be able to find all the answers you need.

[webmasterworld.com...]

Justin