krissysstickers Posted May 13, 2010 Share Posted May 13, 2010 Hi there, I am just wondering if anyone knows what I might be missing ... If you go to my site www.i-love-stickers.com the top part is a little distorted yet the same site on www.i-love-stickers.com/index.php shows up perfectly ... and they are supposed to be the exact same. Does anyone know what I might do to fix this? Thanks in advance for looking! Krissy Link to comment https://forums.phpfreaks.com/topic/201572-wwwwebsitecom-vs-wwwwebsitecomindexphp/ Share on other sites More sharing options...
JasonO Posted May 13, 2010 Share Posted May 13, 2010 Its because you have an index.html file there as well. Rename or delete it and it will make your PHP file load instead of the HTML one. http://www.i-love-stickers.com/index.html Is the same as http://www.i-love-stickers.com/ But is different to http://www.i-love-stickers.com/index.php Link to comment https://forums.phpfreaks.com/topic/201572-wwwwebsitecom-vs-wwwwebsitecomindexphp/#findComment-1057483 Share on other sites More sharing options...
Jiblix Posted May 13, 2010 Share Posted May 13, 2010 I know whats wrong... ..You have another file on your system called "index.html" and thats being loaded by default. Delete this file and then the "index.php" will load by default instead. Simple fix. Link to comment https://forums.phpfreaks.com/topic/201572-wwwwebsitecom-vs-wwwwebsitecomindexphp/#findComment-1057486 Share on other sites More sharing options...
krissysstickers Posted May 16, 2010 Author Share Posted May 16, 2010 Thank you both! For whatever reason I thought one HAD to have an index file! I have learned my new fact of the day Cheers! Link to comment https://forums.phpfreaks.com/topic/201572-wwwwebsitecom-vs-wwwwebsitecomindexphp/#findComment-1059230 Share on other sites More sharing options...
krissysstickers Posted May 16, 2010 Author Share Posted May 16, 2010 Hi again! I just did that and when I entered the URL a list of all my website files (parent directory) came up and so it seems I do need to keep the index.php file. Any other ideas? Many thanks in advance for looking and for any suggestions! Link to comment https://forums.phpfreaks.com/topic/201572-wwwwebsitecom-vs-wwwwebsitecomindexphp/#findComment-1059233 Share on other sites More sharing options...
smerny Posted May 16, 2010 Share Posted May 16, 2010 they were saying to get rid of index.html but keep index.php (otherwise it will access index.html if you don't specify) Link to comment https://forums.phpfreaks.com/topic/201572-wwwwebsitecom-vs-wwwwebsitecomindexphp/#findComment-1059235 Share on other sites More sharing options...
krissysstickers Posted May 17, 2010 Author Share Posted May 17, 2010 AH!!!! I see! (I feel so silly). Thank you all so much and thanks Smerny for clarifying that - all fixed! Link to comment https://forums.phpfreaks.com/topic/201572-wwwwebsitecom-vs-wwwwebsitecomindexphp/#findComment-1059569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.