www.webdeveloper.com
Results 1 to 3 of 3

Thread: how to set url like subdomain using .htaccess and php

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    13

    how to set url like subdomain using .htaccess and php

    how to set url like subdomain using .htaccess and php

  2. #2
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    Perhaps this will help, I don't know much on the subject but this looks informative: http://www.mediacollege.com/internet...ubdomains.html

  3. #3
    Join Date
    Dec 2013
    Posts
    12
    <VirtualHost *:80>
    ServerName www.example.com
    ServerAlias example.com *.example.com
    DocumentRoot /www/domain
    </VirtualHost>

    Adding the wildcard subdomain *.example.com, your PHP application will receive all requests for any domain below example.com, ie garbage.example.com, busted.example.com, llama.example.com, etc.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles