Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

On site, if files does not exist change to a different url

edit - nevermind, just had to edit the .htaccess file

CLOSED

Hey hf, i am just wondering how to make it so if i user searches for a file on a site and it does not exist, for example "google.com/thisfiledoesnotexist.php" then for the site to display a page does not exist page or maybe redirect to a different url o.o

thanks 🤝
Make use of custom error documents.

For example, a file not found is 404, you could place this in your .htaccess file and the file "notexist.php" is displayed
Code
ErrorDocument 404 /notexist.php

[Image: tkg318I.png]
(Jun 28, 2014 05:37 PM)Exemplification Wrote:  Make use of custom error documents.

For example, a file not found is 404, you could place this in your .htaccess file and the file "notexist.php" is displayed
Code
ErrorDocument 404 /notexist.php

lol a minute too late :)
thanks any ways for trying to help 🤝


Possibly Related Threads...
Thread / Author Replies Views Last Post
by a_different_usernameJan 7, 2019 12:27 PM 0 167 Jan 7, 2019 12:27 PM
Last Post: a_different_username
by Versatile.Sep 14, 2017 11:30 AM 3 145 Sep 14, 2017 11:30 AM
Last Post: Cuthbert
[MyBB] by EvilJul 17, 2017 01:41 PM 1 176 Jul 17, 2017 01:41 PM
Last Post: Viral Dragon