How to mask a url on my own site in the address bar?

2 replies
I installed a exit pop up/redirect on my sales page. This takes visitors to a discount page. I would like the address bar in peoples browsers to only display my domain name not the location of the discount page so only my root domain would be displayed. Any suggestions on how to do this?

Example:

www.mysite.com

instead of
www.mysite.com/discountpage

even when visitors are on /discountpage

Thanks for any help
#address #bar #mask #site #url
  • Profile picture of the author CDarklock
    Originally Posted by kschmandt View Post

    I would like the address bar in peoples browsers to only display my domain name not the location of the discount page
    Put your discount stuff in the same page with your non-discount stuff, but in a DIV hidden by CSS.

    When your exit popup runs, don't go to another page. Just run some Javascript that unhides your discount DIV and hides the main page's DIV.

    Whenever I say this, people always ask me "What if they have Javascript turned off? I want it to still work!"

    And then I have to remind them that EXIT POPUPS ARE JAVASCRIPT. If Javascript is turned off, your exit popup can't work.
    Signature
    "The Golden Town is the Golden Town no longer. They have sold their pillars for brass and their temples for money, they have made coins out of their golden doors. It is become a dark town full of trouble, there is no ease in its streets, beauty has left it and the old songs are gone." - Lord Dunsany, The Messengers
    {{ DiscussionBoard.errors[3518725].message }}
  • Profile picture of the author kschmandt
    That makes good sense. Could you give me an example of the div tag that I would use. I am savvy enough to get it in the code but I don't know what the "hide page/section of page" tag would be.

    This is a stand alone php file too, it doesn't reference any css file so I guess the actuall css would have to be in there too. Anything you can do to point me in the right direction would be a great help!

    Thanks for your help, this sounds like a really good solution.
    {{ DiscussionBoard.errors[3521073].message }}

Trending Topics