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.

Page extensions

Featured Replies

Is it good to use page extensions in the URL such as .HTML .PHP

 

Are there any Pros and Cons using/not using page extensions?

Page extensions in the old way of thinking used to hold some value, it's why so many used to rewrite and serve php pages via an .html extension, essentially creating a physical page to the search engines even though it was dynamically generated. Now, the extension on the page is pretty much irrelevant imo, with search engines really only concerning themselves with urls and headers for html pages.

For me I choose to drop them all together, simply down to url management and scope for changes without needing a bunch of 301 redirects. For example if I made /contact.html then it would get indexed, then I want a form so I make /contact.php and 301 the old page in. Oh, but now I want to swap to Windows and use aspx; so I make /contact.aspx and forward /contact.php there. All this would have been saved if I used /contact from the beginning, never needing to 301 ever again.

Just my 2 pence worth as always :D

  • Author

I have now removed .HTML and .PHP from showing in the URL. The method I used to do this was editing the .htaccess file and inserting the following:

# Remove .php file extension from URL
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]

# Remove .html file extension from URL
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]

 

  • 2 months later...

Last week, Google released this video: 

It supports @BrowserBugs post - they don't care, at least in terms of it affecting search results.

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.