Commit a2dd7e38 authored by Sebastian Gellweiler's avatar Sebastian Gellweiler

Added a custom 404 page.

parent 993f01c5
Pipeline #132674198 passed with stages
in 2 minutes and 11 seconds
......@@ -32,9 +32,11 @@ crawl:
--trust-server-names \
--adjust-extension \
"${WORDPRESS_URL}" \
"${WORDPRESS_URL}/robots.txt"
"${WORDPRESS_URL}/robots.txt" \
"${WORDPRESS_URL}/notfound"
- find wp_2789218/ -type f -exec sed -i -E 's/wp_2789218(\\\/|%2F|\/)?//g' {} \;
- find wp_2789218/ -type f -exec sed -i -E 's/wp-admin(\\\/|%2F|\/)admin-ajax.php/admin-ajax-oAEhFc.php/g' {} \;
- sed -i 's|<head>|<head><base href="/notfound/">|' wp_2789218/notfound/index.html
- mv wp_2789218 static
artifacts:
paths:
......
# Remember to adjust the AuthUserFile directive to point to your .htpasswd file.
# This needs to be an absolute path.
#
# Replace all occurrences of wp_2789218 with the name of your wp directory,
# if you host WordPress under a different directory.
RewriteEngine On
RewriteBase /
ErrorDocument 404 /static/notfound/index.html
# Setup basic auth
AuthUserFile /var/www/vhosts/demo.gellweiler.net/httpdocs/.htpasswd
AuthUserFile /var/www/httpdocs/.htpasswd
AuthType Basic
AuthName "Only for trusted employees"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment