简体   繁体   中英

I want to built a custom 404 page for my website

This is 404 page background image I want to make a custom 404 page with this image as background and use the bootstrap button to be clicked on.

into this image, there is a black rectangle on it I want to keep the home link button I tried everything to keep this button on same place for evry device but it shifts different position in defferent devices

is it possible to fix button with background image position with if yes then how to do it..

According to the HTTPD documentation for ErrorDoument , the path to a file must be relative to the configured DocumentRoot, ie. if /opt/lampp/htdocs/abc/404.html is the file you want to use, and the DocumentRoot is set to /opt/lampp/htdocs, then you must use ErrorDocument 404 /abc/404.html.

If you want to set the ErrorDocuent in a .htaccess file, you must ensure that AllowOverride FileInfo is set for the directory the .htaccess file is stored in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM