1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

URL rewrite several URLs pointing

Discussion in 'PHP' started by ludwig, Aug 8, 2008.

  1. #1
    Hi guys

    We do URL rewriting, but if we have 2 URLs, lets sa xyz.com and abc.com pointing to the same site, we can make only one of them work since the RewriteBase is static. Is it possible to have it change based on the URL?
     
    ludwig, Aug 8, 2008 IP
  2. Revolution333

    Revolution333 Peon

    Messages:
    227
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorry if this is not what you mean but.

    You can always park one of the domains and it will still be able to use URL rewriting.
     
    Revolution333, Aug 8, 2008 IP
  3. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #3
    I may have not cleared the issue. I should have written this earlier

    there is
    www.XYZ.com/abc/test

    and
    www.ABC.com/test

    this 2 URLs open the same page, but we cannot make them work for both URL since RewriteBase we can write only once, is it possible for modify the RewriteBase in .htaccess based on the browser's URL
     
    ludwig, Aug 8, 2008 IP
  4. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #4
    any ideas guys?
     
    ludwig, Aug 9, 2008 IP