Hey. I made a custom 404 error page and I added this to my .htaccess:
ErrorDocument 404 /error.php
Now, whenever I go to thread or userprofile or award ID page or anything that has something at the end (for example "newthread.php?fid=127") it goes to that 404 error page. How can I fix this? I obviously only want it to go direct there when someone tries invalid url.
What option is on AdminCP/Configuration/Server and Optimization Options/Enable search engine friendly URLs?
(2014-07-10, 06:17 PM)adi19 Wrote: [ -> ]What option is on AdminCP/Configuration/Server and Optimization Options/Enable search engine friendly URLs?
Off. Hopefully it doesn't require it to be on D:
Do you want people to not get access to the area you added the error page?
Here is the 404 error page I use.
Try this code:
deny from all
#Rewrite URL's
RewriteEngine On
RewriteRule ^404/?$ errors/404.html [NC]
# Enable Error Documents
# (404,File Not Found) | (403,Forbidden) | (500,Internal Server Error)
ErrorDocument 404 /404
ErrorDocument 403 /404
(2014-07-14, 01:57 PM)PhantomD Wrote: [ -> ]Do you want people to not get access to the area you added the error page?
Here is the 404 error page I use.
Try this code:
deny from all
#Rewrite URL's
RewriteEngine On
RewriteRule ^404/?$ errors/404.html [NC]
# Enable Error Documents
# (404,File Not Found) | (403,Forbidden) | (500,Internal Server Error)
ErrorDocument 404 /404
ErrorDocument 403 /404
I want
http://myforum.com/soghkroh.php redirect to my 404 error page. So, a simple page not found- error page