I would like to make that if the file/directory/ doesn’t exist it would take the visitor to www.mysite.com/error404.php How can i make this? Thanks for the help ;p
Don’t understand this 
I need so if they enter www.mysite.com/djsuifojdsf.php www.mysite.com/djsuifojdsf123434.php or any file/page that doesn’t exist on my hosting, that it would redirect to www.mysite.com/error404.php
A .htaccess file is your answer.
http://www.htaccessbasics.com/404-custom-error-page/ http://net.tutsplus.com/articles/news/htaccess-files-for-the-rest-of-us/KamilWaheed saidAh thank you. Problem is i already once made .htaccess file and it is hidden on cPanel… How could i edit it, or how can i make another, since it will not let me make 2 with same name…?
A .htaccess file is your answer. http://www.htaccessbasics.com/404-custom-error-page/ http://net.tutsplus.com/articles/news/htaccess-files-for-the-rest-of-us/
- United Kingdom
- Community Superstar
- Attended a Community Meetup
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Has been a member for 2-3 years
- Microlancer Beta Tester
- Bought between 100 and 499 items
- Referred between 10 and 49 users
jozevodinar said
KamilWaheed saidAh thank you. Problem is i already once made .htaccess file and it is hidden on cPanel… How could i edit it, or how can i make another, since it will not let me make 2 with same name…?
A .htaccess file is your answer. http://www.htaccessbasics.com/404-custom-error-page/ http://net.tutsplus.com/articles/news/htaccess-files-for-the-rest-of-us/


After you find the .htaccess file add this into it:
