Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hiding file name extensions

Featured Replies

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

You can use ajax to load the content with out leaving the page. Have a look at the prototype javascript framework.

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?

 

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.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.