contao-academy
9/22/2014 - 8:53 AM

htaccess - Redirects zu Home und ErrorDocument festlegen Contao Mod_rewrite ohne .html suffix

htaccess - Redirects zu Home und ErrorDocument festlegen Contao Mod_rewrite ohne .html suffix

# Note that not all environments support mod_rewrite and mod_cache.  ##
  RewriteCond %{REQUEST_FILENAME} !\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|mp4|webm|ogv|mp3|ogg|oga|eot|otf|tt[cf]|woff2?|svgz?|pdf|gz)$
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule .* index.php [L]

#Redirect Home zu Root
redirect 302 /home.html http://www.fenepedia.de

#ErrorDocument Serverweit
ErrorDocument 404 /id-404-error.html