Redirect httpd file

Friday, July 4, 2014

I tried editing httpd file using all the solutions i found to redirect a http://ift.tt/1lEjAcu (example website) to http://pc.web.com.


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



<VirtualHost *:80>

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


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

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


even redirect is also not working!!







http://ift.tt/VlibCd