simple rewrite

Discussion in 'PHP' started by promotingspace.net, Feb 21, 2009.

  1. #1
    Hi
    could somebody help me to write this rewrite rule:
    anysubdomain.mydomain.com/anything to==> mydomain.com/index.html
    thanks
     
    promotingspace.net, Feb 21, 2009 IP
  2. mdrobiul

    mdrobiul Peon

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    may be you should use redirect trick placing .htaccess file in subdomain site
     
    mdrobiul, Feb 22, 2009 IP
  3. ez-designs

    ez-designs Well-Known Member

    Messages:
    230
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Try the following on a .htaccess file, but put it on the root of the domain, not the subdomain.

    Edit: or put the following .htaccess on the root of your subdomain:
     
    ez-designs, Feb 22, 2009 IP