From 55057a44b87b71b6de315eeb08b24ff1bca090bd Mon Sep 17 00:00:00 2001 From: mxmehl Date: Fri, 26 Jun 2015 17:30:28 +0300 Subject: [PATCH] make rewrites clearer and unambiguous for search engines --- .htaccess | 7 +++---- index.en.php | 4 ++-- static/nav.de.html | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.htaccess b/.htaccess index 66d8601..a935135 100644 --- a/.htaccess +++ b/.htaccess @@ -16,12 +16,12 @@ RewriteRule ^(.*) http://mehl.mx/$1 [R=301,L] ## Nice URLs # Rewrite URL/de to URL/index.de.php RewriteRule ^(..)/?$ /index.$1.php -# Rewrite URL/en/contact to URL/contact.en.php +# Rewrite e.g. URL/en/contact to URL/contact.en.php RewriteRule ^(..)/(.*)$ /$2.$1.php # Rewrite empty URL to standard index page RewriteRule ^$ index.de.php -# Rewrite URL/contact to URL/contact.de.php -RewriteRule ^([a-z]+)/?$ /$1.de.php +# Rewrite e.g. URL/contact to URL/de/contact and make it visible +RewriteRule ^([a-z]+)/?$ /de/$1 [R=301,L] ## Error Documents ErrorDocument 403 /404.php @@ -59,4 +59,3 @@ AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javasc ExpiresByType application/x-httpd-php A604800 ExpiresByType image/x-icon A2592000 - diff --git a/index.en.php b/index.en.php index 36c2503..fbc57fa 100644 --- a/index.en.php +++ b/index.en.php @@ -2,7 +2,7 @@ Max Mehl - + @@ -15,7 +15,7 @@

Impressum

-

+

diff --git a/static/nav.de.html b/static/nav.de.html index 8772f31..93fb7e7 100644 --- a/static/nav.de.html +++ b/static/nav.de.html @@ -1,6 +1,6 @@