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.

Address differences

Featured Replies

Hello

 

I am new to this so bare with me please: :)

 

Why are htm/html endings sometimes not visible in the address bar?

 

Sometimes address looks like this: www.something.com/page.htm or www.something.com/page.html

 

Other times it looks like this: www.something.com/page

 

What is the difference?

Hello

 

I am new to this so bare with me please: :)

 

Why are htm/html endings sometimes not visible in the address bar?

 

Sometimes address looks like this: www.something.com/page.htm or www.something.com/page.html

 

Other times it looks like this: www.something.com/page

 

What is the difference?

Welcome to the forum,

 

If im guessing correctly the htm and html is just a extention difference as htm or html will do the same thing.

 

with your second example "www.something.com/page" this could be an apache mod_rewrite or your browsing a sub folder of the root directory and havnt selected page yet.

 

If i have made a mistake i'm sure someone will correct me.

 

Ben

www.something.com/page or www.something.com/page/ makes a browser go to the sub-directory called page but as the address doesn't give a filename it looks for a file called index.htm or index.html or index.php or index with any other extension (in that order, I think).

 

If there is no file with index in the filename, the browser will display a list of all the files in that directory which can be a security issue if you don't want your files to be public, so most host servers have a Control Panel with a menu to disable indexing, so that if there is no index file, the browser says "forbidden".

 

So each of your directories should have indexing disabled and you should have an index file like index.html in any directory where you expect people to enter a shortened version of the address like www.something.com/page (and the root directory should always have an index file so that if people just enter the domain name like www.something.com they will go to the index page).

 

So if you haven't got a sub-directory called page, it must be the mod_rewrite.

Chances are it will have been done using "mod_rewrite" which is a technique available on Apache servers. Most CMSs (WordPress, Drupal, etc) let you do this, so that instead of

 

www.mydomain.com/index.php?p=47326

 

You can have

 

www.mydomain.com/contact

 

Much better for SEO. It's all done via some arcane codes in a file called ".htaccess" that sits in your site's root folder, and the CMS normally takes care of it for you. Wordpress calls it "permalinks".

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.