Faqts : Business : Internet : Web Servers : Apache : Security

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 2 people (50%) answered Yes
Recently 1 of 2 people (50%) answered Yes

Entry

How do I force http://test.com to be http://www.test.com using .htaccess

Jun 16th, 2008 05:03
gaurav sabharwal, Kush Kushy,


RewriteCond %{HTTP_HOST} ^nemoweb\.com\.au$ [NC]
RewriteRule ^(.*)$ http://www.nemoweb.com.au/$1 [R=301,L]

Found myself, hope it will help somebody

--------- 
Yes didnt see this before there was some one who wanted the above but
that only defines php apache code on htacess. 
For more details on other platforms you can visit this :

http://www.faqts.com/knowledge_base/view.phtml/aid/53827/fid/276

Thanks 

Gaurav 
http://www.itchimes.com