Hi,
> Virtual Hosts is for only working on local computer(if I have understood it right).
NO.
All hosting providers use VirtualHost. You don't notice it because the VirtualHost exists before you upload your site to it and was created by the hosting provider.
VirtualHosts are essential for CMS and WEB and WordPress applications, among others, will work badly, if not installed in a VirtualHost; moreover, the VirtualHost must exist BEFORE installing Wordpress.
>Then your answer does not fit my question.
This forum is not intended to debug PHP scripts, MySQL queries or .htaccess files.
See : [
httpd.apache.org]
or WordPress documentation
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons