September 21, 200818 yr Hi, I am sure I have seen this done somewhere before, where a website, no matter what page you click on just displays as , for example, www.examplesite.com in the address bar, it doesnt show any other pages you click on. Basically I am coding a site where a user has to register/sign in to view certain areas and have created a link to a hidden page upon signing in, only problem is that it shows in the address bar at the top and is accessible via direct link to that address. Hope this makes sense and hope somebody can help. Cheers
September 21, 200818 yr You can use ajax to load the content with out leaving the page. Have a look at the prototype javascript framework.
September 27, 200818 yr Author not sure i understand tbh, a site that does what i want is a rival site, http://www.ukdirt.co.uk, see the address bar only ever shows the main url
September 28, 200818 yr The rival website (I hate the term rival - see below). Uses a frame to mask the true URL. <html> <head> <LINK REL="SHORTCUT ICON" HREF="http://www.ukdirt.co.uk/ukdirt/graphics/favicon.ico"> <title>UK-Dirt Online Racing League - Official Website</title> <META name="description" content="The UK's #1 Oval Racing League. Regular racing for BriSCA F1 & F2 Stock Cars, Bangers, Saloon Stocks, National Hot Rods and Legends."> <META name="keywords" content="ukdirt, uk-dirt, online, racing, stock car, banger, oval, servers, cybernetic"> <META http-equiv="Content-type" content="text/html; charset=iso-8859-1"> <FRAMESET rows=100%> <!-- MAIN --> <!-- <FRAME NAME="MAIN" SRC="http://www.ukdirt3.co.uk/cgi-bin/router.pl?link=/ukdirt/home.ukd"> --> <!-- BACKUP --> <FRAME NAME="MAIN" SRC="http://www.ukdirt.co.uk/cgi-bin/router.pl?link=/ukdirt/home.ukd"> <!-- MAINTENANCE --> <!-- <FRAME NAME="MAIN" SRC="http://www.ukdirt.co.uk/maintenance.html"> --> </frameset> </html> You could simply replace the URLs with your own. This will only MASK the URLs not hide them, it is very trivial to find out what they are. -- Note about the term rival: I believe in abundance theory, there is more that enough for everyone. I also believe most people on this forum do too. Otherwise why would they be helping their rivals?
September 29, 200818 yr mod_rewrite I think using mod_rewrite in this instance would over complicate things, especially with regard to loading a different page based on a session. You would be much better off using PHP's session handler and simply including the page based on what is written in the session.
September 30, 200818 yr Place this into your index file between the <body> tags: <iframe src="home.html">Your browser does not support frames</iframe> Your entire website will then be displayed within this iframe causing the URL to remain constant. This isn't however a secure method seen as in Firefox, the use can simply right click and click This Frame > Show only this frame which will take them into how a normal website would behave. I'm not too clear on your reasons for hiding the URL from the user?
Create an account or sign in to comment