Hi I was thinking off making an image so people could press enter to get to our website,i started to google and the only thing i could find was people saying that i should make an file called index.html and put the script for images and links in there dosent matter if you had index.php they said it will take index.html first :/ lol wich it dosent,me and my friend made the script a few minutes ago tested it when we linked to the html file works fine But how do i do now then since i alredy have an index.php wich i cant remove lol So what you say about that ?
You really should have only one index file. index.php, index.htm, index.html etc will all work. I can't understand you.
Okey sorry little bad explination hehe I alredy have 1 index.php so my questions is how do i do this ? To get my image at the very first when someone write in my url to my website
U can use this code in your main index: <a href"insert-your-path-to-home-page.html" title="Enter Website"><img src="path-to-image.jpg" alt="Enter site" /></a> HTML: Remember to put this between the <body> and </body> tags. Was that what you meant?
Hmm not sure and on my index i dont have body I try to make an new explination The hing im trying todo is making an images with a picture were it says Enter Site and when comeone click on it they gets into my website i alredy have the script and i have made th eimages it works fine 100% sure The obly thign is i dont know how to make it work since i have index.php alredy :/
Change the landing page to index.html in your control panel, though as previously stated you shouldn't really have 2 index files. Then use the code dejangex provided and point the link to index.php: index.html:
Well i giuess i have to point my domain name to index.html then,becuse have another index.php does almost every website have have no idea how other people do when they use this but i point trough my domain then thanks
I'm guessing you want a 'Welcome Page' where you welcome users, have them take a look an agreement then they can click ENTER to enter the site, right? You can renamed your index.php to something else like example.php . There will be no problems with that I think. Then you can create a nice looking page called index.html, in that page you can put your 'Enter Button' which is linking to exmaple.php and upload it to your root.
a secondary option for when you cannot rename index.php (and there is some cases when it has to be the same name) is to have the main folder where you have your index.htm then have a folder called site (or what ever name) and have it go to that when you click the image. alternatively you can have index.htm and php and it will read the one that was uploaded first if i remember correctly,
If you can't rename your index file, you can change the directory index in your .htaccess file: DirectoryIndex welcomepage.html From your welcomepage.html, you can link to index.html.
This is a server setting which file it will access when someone goes to your page. You could make it use "gsufsdfsf.html" if you wanted to. Are you using Apache or what?