Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Create Subdomains on the fly using .htaccess file?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 518
    Comment on it

    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.

    *   3600  A

    Step 2: Now Setup the Virtual Host, in your vhost file.see below code.

        DocumentRoot "E:\wamp\www\myproject"
        <directory myproject="" wamp="" www="">
            AllowOverride All
            Order allow,deny
            Allow from all

    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

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: