Redirect httpd file

Friday, July 4, 2014

I tried editing httpd file using all the solutions i found to redirect a (example website) to

But none of the solutions are working! can anyone could guide me on this?

<VirtualHost *:80>

DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs"

RewriteCond %{} ^www\.(.*)$ [NC]

RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

even redirect is also not working!!