Add htaccess rules for 404 translations

parent 79ff42a0
# own 404 handler
ErrorDocument 404 /404.html
RewriteEngine On
RewriteBase /
# Don't redirect if file, symlink or directory exist
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# Redirect /lg/xxxxxx -> /xxxxxx
RewriteRule "^[a-z]{2}/(.*)$" "$1" [L,R=301]
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