Hiding URL

Discussion in 'Programming' started by Joe Blow, Feb 7, 2006.

  1. #1
    Hi everyone,

    I really need a hand and I was hoping some kind soul maybe able to help.

    I am putting a bookshop on my website and I want it to go at www.mysite.com/shop. Now the shop is a cobranded shop with another site so the link is www.theirsite.com/default.asp?a=XX.

    The question is, what is the best way to hide 'www.theirsite.com/default.asp?a=XX' so that all the visitor sees is www.mysite.com/shop in the URL bar?

    I tried frames which worked until they clicked a link back to my site and it still showed www.mysite.com/shop instead of the correct URL. The problem is that I only want the URL to be hidden when they are at the shop, not when they are at my site.

    Are frames the best way to do this, or should it be done with mod_rewrite?

    Any advice or code from those who are doing this would be gratefully appreciated! :)

    Thanks is advance!
     
    Joe Blow, Feb 7, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The best way to do this is to ask the merchant if you can use php to include some of their content in your site (screen scraping) rather than linking to them. That way your visitors get the experience of being on your site and the search engines will rank your site higher.

    You would need to use fopen along with some string functions etc to manipulate the pages and alter the links to make them sit on your site rather than their site.

    Essentially your page would be mysite.com/shop/widgets and your page would open and manipulate theirsite.com/default.asp?id=aaa&product=widgets
     
    mad4, Feb 12, 2006 IP
  3. UptimeAgent

    UptimeAgent Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi.

    If what mad4 suggested is not acceptable for your merchant then mod_rewrite should be the best solution.

    We would recommend to check the official Apache site for the mod_rewrite information.

    We have few URLs that might be useful for you but we are not allowed to pos t them yet (<10 posts).
     
    UptimeAgent, Feb 15, 2006 IP