url rewriting - How to rewrite urls -
i have site @ xyz.com, reasons want redirect access www.xyz.com url xyz.com. if add 'www', want alter address in bar xyz.com. there way?
first enable mod_rewrite in web server use .htaccess file in directory content:
rewriteengine on rewritecond %{http_host} ^www\.xyz\.com$ rewriterule ^(.*)$ "http\:\/\/xyz\.com\/$1" [r=301,l]
Comments
Post a Comment