Skip to content

Commit

Permalink
BUG all 404 redirects now use 404 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Seidenberg committed Dec 22, 2015
1 parent c36bc73 commit 34615bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ at an appropriate location near the top of the mod_rewrite rules:
RewriteCond %{DOCUMENT_ROOT}/routewhitelistcache/.htaccess -f
RewriteCond %{REQUEST_URI} ^\/(.+?)(\/.*|\s*)$
RewriteCond %{DOCUMENT_ROOT}/routewhitelistcache/%1 !-f
RewriteRule .* assets/error-404.html [L]
RewriteRule .* assets/error-404.html [L,R=404]

2 changes: 1 addition & 1 deletion extra/htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ErrorDocument 500 /assets/error-500.html
RewriteCond %{DOCUMENT_ROOT}/routewhitelistcache/.htaccess -f
RewriteCond %{REQUEST_URI} ^\/(.+?)(\/.*|\s*)$
RewriteCond %{DOCUMENT_ROOT}/routewhitelistcache/%1 !-f
RewriteRule .* /assets/error-404.html [L]
RewriteRule .* /assets/error-404.html [L,R=404]

# Process through SilverStripe if no file with the requested name exists.
# Pass through the original path as a query parameter, and retain the existing parameters.
Expand Down

0 comments on commit 34615bd

Please sign in to comment.