WebSite X5Help Center

 
Mr Shine
Mr Shine
User

How to change html in to php??  en

Author: Mr Shine
Visited 2375, Followers 1, Shared 0  
Tags: html,script

what script should i use so i can see al my pages in php and not html?

Posted on the
5 ANSWERS - 1 CORRECT
Nigel P.
Nigel P.
User

Hi,

This is straight from the online manual

Sitemap Creation | Page Properties | Expert

The options in the Expert section of the Page Properties window are used for working on the Website'sSiteMapand for manually editing the HTML code that is generated for the Page you are working on:

-

File Name Format: you can indicate the format in which the file of the Page will be saved. The default option is .html but you can change this to either .php, .asp, .cfm or .jsp. The index.html file of the Home Page can also be saved in a different format: the same format will be used for the Welcome Page. You cannot change the format of the file generated for a Locked Page, which must remain .php (see the Locked Page command inSitemap Toolbar).

Hope this helps

Nigel

Read more
Posted on the from Nigel P.
Mr Shine
Mr Shine
User
Author

hi Nigel,

Thanks for ur comment and time, I did that already and i also changed the names of the pages. but when i load the site up and go to my domain i see a double  like: index.html and index.php.

I tried to delete the whole website from my domain and uploaded it again with the homepage extension as home.php instead of index.php but then am not able to see my page anymore. i also changed the home.php back to index.php still not working. but when i change it back to index.html it does works though. so i thought maybe i have to write a php scrip and put it in page properties -> expert tab under costum code. And maybe then it will work but i dont know what script.

so what am i doing wrong? any tips or tricks?

Read more
Posted on the from Mr Shine
Incomedia
Claudio D.
Incomedia

Hello,

Could you please post the link to your website?

The first page of a website, usually, has to be named index.html or php. It depends on the settings on the server. Probably the server is not accepting index.php as the default page but if you post the link I can try to see what exactly happens.

Read more
Posted on the from Claudio D.
Mr Shine
Mr Shine
User
Author

Hi cloudio,

after many hours, index.php do works now. but if i change it to home.php it no longer works unless i type the whole website including the homepage. for example if i typewww.zeeperfums.comi cant see my website. i automaticaly get directed to the provider server. but when i typewww.zeeperfumes.com/home.phpit does work. so how can i fix this without including the homepage name everytime? i mean my costumers would never be able to visit my website like this. is there a solution for this?

thanx in advance

Read more
Posted on the from Mr Shine
Incomedia
Claudio D.
Incomedia

Hello,

The server searches always the file named index.php or index.html when you type the website adress and if it's not present you experience this issue. You need to use index.php as name for the first page.

Read more
Posted on the from Claudio D.