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.

Setting up which page is the default homepage

Featured Replies

I couldn't find which forum to put it in, so i think here is as good as any. Basically i'm doing a website for a client... he already had a website. How do I change it so that the default homepage is not default.html but index.php?

 

Any Ideas?

 

Cheers

 

 

Dave

You can do this adding to the .htaccess file this line:

DirectoryIndex index.php default.htm default.php index.htm index.html

 

This line instructs the server to display in first instance index.php, otherwise it will look for default.htm, default.html and so on when index.php is missing.

 

If there is not .htaccess file already, just make an empty text file with notepad, copy the above line and upload it to the server with the name .htaccess

That's a great tip, thank you mastermind, I had this problem a while back, but had to call my host to change it as a global setting on all my sites on the server, this would have definitely been a better solution, so one to bookmark.

 

Thanks again and welcome to the forum. :)

 

Ben

I've never thought about that - I've always just plonked my index.php files in the route directory and never had a porblem - didn't realise you had to instruct the server about it.

That's a great tip, thank you mastermind, I had this problem a while back, but had to call my host to change it as a global setting on all my sites on the server, this would have definitely been a better solution, so one to bookmark.

 

Thanks again and welcome to the forum. :)

 

Ben

 

Mastermind always has the greatest of tips, his/her name is truly fitting. I combed through several books & Google and I never found this answer. Thank You! Once the question was asked, it was driving me crazy not being able to figure out how to do it.

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.