| 1. |
How To Create Subdomains On The Fly Using .htaccess? |
|
Answer» for this, you have set the VIRTUAL host Follow the following steps: Step 1: Create a wildcard DNS ENTRY *.domain.com. 3600 A 127.0.0.1 Step 2: Setup the Virtual Host, in vhost file. DOCUMENTROOT "E:wampwwwmyproject" ServerName myproject.domain.com AllowOverride All Order allow,deny Allow from all Step 3: Now write your all codes in in Document Root path i.e.E:wampwwwmyproject Step 4: Done, now you can access with myproject.domain.com for this, you have set the virtual host Follow the following steps: Step 1: Create a wildcard DNS entry *.domain.com. 3600 A 127.0.0.1 Step 2: Setup the Virtual Host, in vhost file. DocumentRoot "E:wampwwwmyproject" ServerName myproject.domain.com AllowOverride All Order allow,deny Allow from all Step 3: Now write your all codes in in Document Root path i.e.E:wampwwwmyproject Step 4: Done, now you can access with myproject.domain.com |
|