From 04b31c24dfdf1d57771983777ada02a7f6432b12 Mon Sep 17 00:00:00 2001 From: Simon Koch Date: Sat, 25 Aug 2018 19:34:52 +0200 Subject: [PATCH] #17 Redirect all old urls to new Vue SPA to improve SEO --- src/.htaccess | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/.htaccess b/src/.htaccess index c697484..fa1e9c7 100644 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,8 +1,20 @@ +# Htaccess server configuration + +# Redirect old urls to new Vue SPA to improve SEO RewriteEngine On -Redirect 301 /en/cv.php http://www.felixwiedemann.com/cv/ +Redirect 301 /en/index.php / +Redirect 301 /en/featured.php /films/ +Redirect 301 /en/films.php /films/ +Redirect 301 /en/commercials.php /commercials/ +Redirect 301 /en/cv.php /cv/ +Redirect 301 /en/contact.php /contact/ +Redirect 301 /en/player.php / +# Redirect all non existing pages to index page ErrorDocument 404 /index.html +# Activate gzip for Domainfactory server +# https://www.df.eu/blog/performanceoptimierung/#kompression AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css text/javascript