How to create index.php file


#1

After transfering my website through filezilia when i try loding it on google it say i should crate an index.php file that the file is lacking in the public-htlm folder please how can i solve that


#2

Simply upload an index.php or index.html file… the first file that will load when someone visits your site.


#3

i dont get it.

should i just upload an empty file name index file?
my problem is i dont know how to create the index file ?


#4

What is your 000webhostapp url?


#5

genuinepetconveyor.000webhostapp.com

that the it.please if you can do it for me i will be grateful and also if u could direct me on how to do it so next time i do not border anyone thanks


#6

Have you published your site in the site builder yet?


#7

genuinepetconveyor.000webhostapp.com

that the link. i did not build the website with site build i transfer the files from my previouse website using filezilia, what is required is an index file in the public htlm folder


#8

Do you have the other files that are from your last site?

Where was your last site hosted?


#9

i built my website with the zyro website biulder
and later created this new website which i transfer the files using filezilia then i tried loading the website but they say it lack index.php file. should i upload the index file of the previouse website???
also i had same issue last time an one of the ageent here help me to upload an index.php file to my public folder


#10

If you can upload the index.php from your last site to see if this resolves it.


#11

am doing that now will let you know if it works


#12

It’s funny I remember assisting a user before with a pet carrier website as well :stuck_out_tongue:


#13

i uploaded the file but no difference


#16

genuinepetconveyor.000webhostapp.com

genuinepetconveyor.000webhostapp.com


#17

Can you confirm now if it is better?


#18

this awesome it better, how did you do it so i would not have to worry next time


#19

I uploaded the correct .htaccess file.


#20

please how do they update the .htaccess file


#21

How do you mean?

# Powered by Zyro.com
ErrorDocument 401 "Unauthorized"
ErrorDocument 403 "Forbidden"
RewriteEngine On
RewriteBase /
#### PERSISTENT CONTENT ####
DirectoryIndex index.php index.cgi index.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ zyro/$1 [L,QSA]
php_value output_buffering on

#22

when you say you updated it it mean the previouse one was not uptodate so what am asking is what changes did you do to the file or what did you do??