Home » 123 hosting » Currently Reading:

Can a php extension be removed?

April 14, 2010 123 hosting 2 Comments

123 reg is hosting my website.i’m using the file manager to upload the website. it says the first page has to be index.htm or index.html. so i renamed the file to that. it is a php file and so when i upload the file, it’s called index.html.php. can i get rid of the extension name? all i need is index.html. what can i do to fix this? it also asks whether it should be uploaded as text or binary. *confusion* plz help!

index.php works fine so you don’t need to change anything. Just upload it as index.php

The browser will look for an htm or html file first but as long as your only index file is the .php it will then go to that.

i would suggest downloading ace3ftp from the link below. It’s free and makes uploading your sites a doddle. It decides how to upload automatically…

Technorati Tags: , , , , , , , ,

Currently there are "2 comments" on this Article:

  1. cloudier says:

    mmm…ok…

    to answer your second question, it’s mostly images/flash etc that should be uploaded as binary. Anything that ends with .htm/.html/.php/.css should be uploaded as text.

    First question, try this: edit the entire contents of your .php file with the following:

    1) Paste this BEFORE all your php code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>PAGE TITLE HERE</title>
    </head>
    <body>

    2) Paste this AFTER all your php code

    </body>
    </html>

    3) Save file as .html or .htm

    4) Lemme know how it goes!

    References :

  2. Graham N says:

    index.php works fine so you don’t need to change anything. Just upload it as index.php

    The browser will look for an htm or html file first but as long as your only index file is the .php it will then go to that.

    i would suggest downloading ace3ftp from the link below. It’s free and makes uploading your sites a doddle. It decides how to upload automatically…
    References :
    http://software.visicommedia.com/en/products/aceftpfreeware/

Comment on this Article:







Related Articles:

Can I put PHP into my index.html page in a shared hosting environment on GoDaddy?

April 28, 2010

I’m hoping there’s a file I can stick into my file system that will tell the shared hosting that in my directory .html documents can run PHP scripts. Right now I have to rename them index.php and that’s going to really be a problem on my site. Does anyone know a way to [...]

how do i get my website on the internet?

April 25, 2010

i have made a website using WYSIWYG (what you see is what you get) web builder and i would like to get it onto the internet. i have bought the domain name i want to use. how do i get the site on there?
the site that i bought the domain name off and is supposed [...]

Does http://www.yahoo.com/ have a virus now?

April 15, 2010

I can’t open www.yahoo.com but I manage to go to yahoo! answers by searching on google.com
Everytime I try to go to www.yahoo.com, my avast! activates and it’s says this:
avast! Warning
A Virus Was Found!
There is no reason to worry, though. avast! has stopped the malware before it could enter your computer. When you click on the [...]

Uploading a Favicon to my charity website?

April 9, 2010

Ok I have created a favicon and saved it as favicon.ico in pictures on my computer.
the website I have www.aid4egypt.co.uk is hosted by 123.reg so I don’t have access to certain things but I can edit etc and add HTML codes on pages with their sitebuilder.
I have tried the code below but it does not [...]

Do I need a web hosting package to make my own website as well as a domain?

April 6, 2010

I’m new to web design and have very little background knowledge so bear with me!
I’m making a web comic and I know I need to buy a domain name but do I also have to pay for a hosting package as well?
If I need a hosting package I’m not sure what features I’ll need. Each [...]

Search This Site

Switch to our mobile site