subdomain .htaccess

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    subdomain .htaccess

    is this posible using .htaccess? From example.com/user to user.example.com? Is it?

    #2
    yap baby, its possible


    enable wildcard dns and *.sitename.com in httpd.conf
    Last edited by khan; 12.02.11, 17:53.

    Comment


      #3
      He will need to define the htaccess mapping as well. To map subdomain to folder.
      Perfection comes at a cost



      I accept liberty!

      Comment


        #4
        Btw, guys, is it possible to make something like: whatever.domain.com to domain.com/whatever even if the subdomain whatever.domain.com is not registered?
        mysterio.al - programming is a functional art

        Comment


          #5
          reddiculas question...Why would u need this? Lol

          Comment


            #6
            Make a folder *

            then add

            PHP Code:
            RewriteEngine On
            RewriteCond 
            %{REQUEST_URI}!^/sd_
            RewriteCond 
            %{HTTP_HOST}!^www\.example\.com$ [NC]
            RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com
            RewriteRule 
            (.*) /%1/$[L
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              if the d0main is n0t registered then its useless.

              Comment

              Working...
              X