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 @@