php - Opening website with www.websitename.com -
my website working fine opens websitename.com , can open our website www.website.com also. how can make website open www.websitename.com only. if body types websitename.com redirect www.website.com .
rewriteengine on rewritecond %{request_filename} !-f rewriterule ^([^\.]+)$ $1.php [nc,l] rewritecond %{http_host} ^example\.com$ [nc] rewriterule ^(.*)$ http://www.example.com/$1 [r=301,l]
Comments
Post a Comment