Jump to content

File doesn't exist...but it shows the index anyways?


joemama718

Recommended Posts

Does anyone have an explanation for this?

 

I use a php file (index.php) for the index of my site, and I've been trying to set up a custom 404 page. What I find, however (and I've seen this before too) is that when I go to a page that does not exist, it seems to just show my index page instead. To see this, go to http://www.mildlyhotpeppers.com/. And now go to http://www.mildlyhotpeppers.com/whateveryouwanthere. It still shows my index page. Then go to http://www.mildlyhotpeppers.com/madeupfolder/anything/. It still shows my index page. (In the last two, the index page gets destroyed, however, because the relative image and stylesheet links are not correct.)

 

Does anyone have an idea why this happens?

Link to comment
Share on other sites

Does anyone have an explanation for this?

 

I use a php file (index.php) for the index of my site, and I've been trying to set up a custom 404 page. What I find, however (and I've seen this before too) is that when I go to a page that does not exist, it seems to just show my index page instead. To see this, go to http://www.mildlyhotpeppers.com/. And now go to http://www.mildlyhotpeppers.com/whateveryouwanthere. It still shows my index page. Then go to http://www.mildlyhotpeppers.com/madeupfolder/anything/. It still shows my index page. (In the last two, the index page gets destroyed, however, because the relative image and stylesheet links are not correct.)

 

Does anyone have an idea why this happens?

 

I know that the 404 error page has some effect on the index page, so try deleting the 404 file and just stick with the standard one for now.

Link to comment
Share on other sites

=/ tried that...didn't work. thanks for the reply though.

 

Hmm... my only best recommendation is that to push ahead, because a bad URL redirecting to your index page isn't a bad idea you understand? Try like, making a blank index page for people that... oh forget it. Too complicated.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...