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>
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<html lang="en-EN">
|
||||
<head>
|
||||
<title>Max Mehl</title>
|
||||
<link lang="en" title="Deutsch" href="/de" hreflang="de" rel="alternate" type="text/html">
|
||||
<link lang="en" title="Deutsch" href="/" hreflang="de" rel="alternate" type="text/html">
|
||||
|
||||
<?php include 'static/head.en.html'; ?>
|
||||
</head>
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<div class="info">
|
||||
<p><a target="_blank" href="/impressum">Impressum</a></p>
|
||||
<p><a href="/de"><?php include 'static/lang.en.html'; ?></a></p>
|
||||
<p><a href="/"><?php include 'static/lang.en.html'; ?></a></p>
|
||||
</div>
|
||||
</div><!-- / header-content -->
|
||||
</div><!-- / header -->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<nav id="simplicity-main-menu">
|
||||
<ul>
|
||||
<li><a href="/de">Start</a></li>
|
||||
<li><a href="/">Start</a></li>
|
||||
<li><a href="/de/about">Über mich</a></li>
|
||||
<li><a href="/de/links">Links</a></li>
|
||||
<li><a href="/de/contact">Kontakt</a></li>
|
||||
|
||||
Reference in New Issue
Block a user