make rewrites clearer and unambiguous for search engines
This commit is contained in:
@@ -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
|
||||
</ifModule>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user