+ 2

Apache server error page redirecting to error source

Hello everybody I am currently having trouble with error pages on my apache server. When the user types www.my-domain.com/anypagethatdoesnotexist he gets redirected to www.my-domain.com/error/404.html. I'd like the content to be displayed directly in the wrong url from the user. I configured it via the .httaccess file: RewriteEngine On AllowOverride but still, i get redirected. can anyone help me? in the .htaccess file i set the error pages like this: ErrorDocument 400 https://www.my-domain.com/error/400.html ErrorDocument 401 https://www.my-domain.com/error/401.html ErrorDocument 403 https://www.my-domain.com/error/403.html ErrorDocument 404 https://www.my-domain.com/error/404.html ErrorDocument 500 https://www.my-domain.com/error/500.html Thank you

11th Mar 2019, 4:34 PM
ttschnz
ttschnz - avatar
3 odpowiedzi
+ 1
I've found the solution. when modify the content of the .htaccess file to ErrorDocument 400 /error/400.html ...(and so on) it works👌🏽
12th Mar 2019, 10:39 AM
ttschnz
ttschnz - avatar
+ 2
Do you used xampp, if no please Install it and use.
12th Mar 2019, 8:50 AM
Ashikul Islam
Ashikul Islam - avatar
+ 1
i have installed xampp and i have configurated it correctly
12th Mar 2019, 10:36 AM
ttschnz
ttschnz - avatar