# If no status argument is given, the redirect will be "temporary" (HTTP status 302). # # 301 -eq permanent move # 302 -eq temporary move - https://de.wikipedia.org/wiki/URL-Hijacking # 303 -eq temporary rout - alias seeother - Der Browser soll mit einem GET folgen, auch wenn der ursprüngliche Request ein POST war. # 307 "Temporary Redirect" Der Browser wählt selbst die Methode (einem POST folgt ein POST) beizubehalten wie beim ursprünglichen Request. # 410 -eq gone - The resource has been permanently removed. # SetOutputFilter DEFLATE ## # Rewrite directives take precedende over Redirect directives # Rewrite directives inside a Location take precedence over Rewrite directives with an (external?) URL-path. RewriteEngine On ## s some drm for digital-rendering-management ## # Force less HTTPS... if not already (default HTTP Port 80, HTTPS Port 443) ## ##RewriteCond %{SERVER_PORT} 80 ## # !=on without "" quotation marks say "!=on" ## RewriteCond %{HTTPS} !=off [OR] ## # Force WWW subdomain... if not already ## RewriteCond %{HTTP_HOST} !^www\.rollator-parcours\.com$ ## ## ## RewriteCond %{QUERY_STRING} ^$ ## RewriteRule .* http://www.rollator-parcours.com/$0 [R=302,S=0,L] #RewriteRule ^de/HOWTO/Asus-Eee-PC-1000HE(.*)$ /de/HOWTO/ASUS-Eee-PC-1000HE$1 [R=301,L] #RewriteRule ^include/0ffSite/IMG_20171028_152759315_544x408.jpg$ /include/0ffSite/IMG_20171028_152759315_544×408.jpg [R=303,NC,L] # Force DE locale... substitues RedirectMatch (due to processing order reasons) RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(index\.html?)?$ http://www.rollator-parcours.com/de/ [R=302,S=5,L] # Remove index.html? file name... if at the end RewriteCond %{DOCUMENT_ROOT}$1 -d RewriteCond %{QUERY_STRING} ^$ RewriteRule ^(.*/)?index\.html?$ http://www.rollator-parcours.com/$1 [R=307,S=4,L] ## mod_alias # Redirect directives take precedence over Alias and ScriptAlias directives, irrespective of their ordering in the configuration file. # Redirect directives inside a Location take precedence over Redirect and Alias directives with an URL-path. #RedirectMatch 307 ^/test-htaccess /RedirectMatch #RedirectMatch 302 ^/$ /de/ #Redirect 301 /de/HOWTO/Asus-Eee-PC-1000HE /de/HOWTO/ASUS-Eee-PC-1000HE