If you are creating subdomains using htaccess for this, you have to set the virtual host
Follow the below steps.
Step 1: Create a wildcard DNS entry first.
*.domain.com. 3600 A 127.0.0.1
Step 2: Now Setup the Virtual Host, in your vhost file.see below code.
<virtualhost>
DocumentRoot "E:\wamp\www\myproject"
ServerName myproject.domain.com
<directory myproject="" wamp="" www="">
AllowOverride All
Order allow,deny
Allow from all
</directory>
</virtualhost>
Step 3: Now you have to write your all code in Root path i.e.C:\wamp\www\myproject
Step 4: Now its Done, you can access now with myproject.domain.com.
0 Comment(s)