07-18-2011, 09:38 PM
I have the page,, how do I make it redirect to it?
I have a PHP question: How do I make a 404 redirect?
|
07-18-2011, 10:17 PM
Create a file called .htaccess in the folder where your website is, and put this line in it:
ErrorDocument 404 /error.php
07-18-2011, 10:45 PM
07-18-2011, 10:49 PM
(07-18-2011, 10:45 PM)roperson Wrote:(07-18-2011, 10:17 PM)Jacob_ Wrote: Create a file called .htaccess in the folder where your website is, and put this line in it: This only works on Apache (by far the most popular web server to use with PHP). If you're using IIS, you'll have to do it some other way.
07-18-2011, 10:54 PM
kk
*Downloads Apache*
07-18-2011, 10:57 PM
It worked for me. Thanks.
07-19-2011, 05:27 PM
So...
Quote:I have this file called "mod.htacces" and it contains Correct?
07-19-2011, 06:05 PM
07-19-2011, 06:15 PM
Windows says
"You must give a file name." |
« Next Oldest | Next Newest »
|