From 516c32adf63238ade399298097a433a2f52fd32d Mon Sep 17 00:00:00 2001 From: Kilian Saffran Date: Sun, 5 May 2019 19:11:43 +0200 Subject: [PATCH] htaccess and robots --- .htaccess | 4 ---- apps/.htaccess | 11 ++--------- robots.txt | 11 ++++------- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/.htaccess b/.htaccess index 0a16fd7..5f8b6c7 100644 --- a/.htaccess +++ b/.htaccess @@ -1,9 +1,5 @@ RewriteEngine On -#RewriteCond %{SERVER_PORT} 80 -#RewriteRule ^(.*)$ https://www.dks.lu/$1 [R,L] -#AddType application/octet-stream .pdf - DirectoryIndex index.cgi index.html AddHandler cgi-script .cgi #devmode end diff --git a/apps/.htaccess b/apps/.htaccess index e458707..3124629 100644 --- a/apps/.htaccess +++ b/apps/.htaccess @@ -1,16 +1,9 @@ -#RewriteEngine On -#RewriteCond %{SERVER_PORT} 80 -#RewriteRule ^(.*)$ https://www.dks.lu/$1 [R,L] -#AddType application/octet-stream .pdf RewriteEngine on -#dev-mode begin + DirectoryIndex index.cgi index.html AddHandler cgi-script .cgi -#devmode end + RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d -#RewriteCond %{REQUEST_URI} /dks_lu/apps/.* -#RewriteRule "^(.*)$" "apps/index.cgi" [NC,L,QSA] -#RewriteCond %{REQUEST_URI} /dks_lu/.* RewriteRule "^(.*)$" "index.cgi" [NC,L,QSA] \ No newline at end of file diff --git a/robots.txt b/robots.txt index 336a216..513cac5 100644 --- a/robots.txt +++ b/robots.txt @@ -1,10 +1,7 @@ User-agent: * Disallow: /css -Disallow: /js -Disallow: /creorga/css -Disallow: /creorga/js -Disallow: /creorga/setups -Disallow: /js -Disallow: /cashbox +Disallow: /img +Disallow: /apps +Disallow: /tmpl Disallow: /vendor -Disallow: /download + -- 2.39.5