February 6th, 2013, 04:15 PM
My .htaccess file:
I want the invalid page to show in the url bar instead of redirecting me to a webpage.
ErrorDocument 404 http://mysite.com/404.php
When an invalid link is clicked it takes a user to this page, however in the url it reads http://mysite.com/404.php I want it to read the incorrect URL so they can let me know what page is incorrect.
February 6th, 2013, 04:21 PM
You gave it a whole URL so it will redirect to that. Keep it at just the filename. With the leading slash.
February 6th, 2013, 06:06 PM
Yes, that worked. Thanks!
Originally Posted by requinix