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.

index.html or index.php are they the same

Featured Replies

Hi every one i would like a php script on my home page index.html its nealy 200 pages so would have to change the links on all the pages so before i attemt this and change it to index.php i would like to now if my server will reconise it a my home page thanks

It'll work. :)

 

Just make sure you go with one *or* the other. If you go with both, your poor server might get confused. :(

 

But, yes, .php will definitely work. I have an index.php.

Hi every one i would like a php script on my home page index.html its nealy 200 pages so would have to change the links on all the pages so before i attemt this and change it to index.php i would like to now if my server will reconise it a my home page thanks

 

As long as you delete index.html and only have index.php then index.php will be your homepage.

It's possible to delete the html file but all those 200 pages will still reference .html and if the server can't find it then it hopefully should select index.php in it's place.

The best option if you're up to it is to add a .htaccess file to your server and use mod_rewrite to redirect page requests. Here's a good resource

An easy example to understand is when you visit Flickr, it shows:

 

www.flickr.com/photos/damien_m_in_japan

 

actually looks something like this (to the server):

 

www.flickr.com/photos/showprofile.php?username=damien_m_in_japan

 

Hope this info helps

...or you could actually update the links. its a simple find and replace command. it'll take you ten minutes

Could you not keep your index page as .html and then add handlers in your .htaccess to parse whatever PHP you have in that page?

Something like:

 

AddType x-mapp-php4 .html .htm

 

Not that I have much clue about such things! :D

hit the nail on the head there wizely

hit the nail on the head there wizely

 

That was lucky then! Goes to show if you swing a big enough hammer enough times you'll eventually hit something!

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.