Additional processing on a dynamic subdomain

Discussion in 'Apache' started by FretLessBass, Aug 23, 2008.

  1. #1
    Hi,

    I've been searching for hours and hacking different examples to solve this, but no dice. If anyone can help I'd be very grateful.

    I have created a dynamic subdomain as the sticky post in this forum recommends. It works fine for straightforward URLs.

    What I also need to do though is, in that new subdirectory, process the following...

    file01.html redirects to index.php?id=file01

    with the location url showing http://xxxxx.domain.com/file01.html

    I tried putting a new .htaccess in the subdirectory with variations of the following...

    That will show the location bar as I want, but the index.php is not getting the id contents so it can process it. :confused:

    Any ideas about how I can get this to work?

    Thanks,

    FLB
     
    FretLessBass, Aug 23, 2008 IP
  2. FretLessBass

    FretLessBass Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Since I posted I tried putting the following into the .htaccess in the directory that holds the dynamic subdomain files...

    I'm just hacking as I've not got any major experience in mod rewrite and this may not be the best way to do it.

    However, this seems to pass the value to the index.php fine but of course since the full url is used in the rewrite, the location bar is no longer showing the url relative to the subdomain which is what I want.

    i.e. The location bar shows

    instead of
    which is what I need.

    Help...

    FLB
     
    FretLessBass, Aug 23, 2008 IP