PATH:
root
/
alutechnik
# :Location /*.php # Use php72 # :Location Options +FollowSymLinks -Indexes DirectoryIndex index.php RewriteEngine On # RewriteBase / # RewriteRule ^admin[0-9]*(/index.php|/?)$ "/" [L,R=302] # Force HTTPS # RewriteCond %{HTTPS} !on # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # <IfModule mod_headers.c> # Header always set Strict-Transport-Security "max-age=31536000; # includeSubDomains" # </IfModule> # Force HTTPS behind a proxy # RewriteCond %{HTTP:X-Forwarded-Proto} !https # RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # Moving from http://example.pl to http://www.example.pl # RewriteCond "%{HTTP_HOST}" "!^www\." [NC] # RewriteCond "%{HTTP_HOST}" "!^$" # RewriteRule "^/?(.*)" "http://www.%{HTTP_HOST}/$1" [L,R=301,NE] # Moving from http://www.example.pl to http://example.pl # RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] # RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [QSA,NC,L,R=301] # No-trailing slash policy (http://example.pl) RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)/$ /$1 [L,R] # <- for test use [L,R], for prod use [L,R=301] # Trailing slash policy (http://example.pl/) # RewriteCond %{REQUEST_FILENAME} !-d # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^(.*[^/])$ /$1/ [L,R] # <- for test use [L,R], for prod use [L,R=301] # Forbidding hotlinking images # RewriteCond "%{HTTP_REFERER}" "!^$" # RewriteCond "%{HTTP_REFERER}" "!(www\.|)polfibra.pl" [NC] # RewriteRule "\.(gif|jpg|jpeg|png|svg|bmp)$" "-" [F,NC] # Moving from / to /pl # RewriteCond "%{REQUEST_URI}"" "!^/?(?:css|js|img|images|font|fonts|userfiles)/" # don't touch listed catalogs # RewriteCond "%{REQUEST_URI}" "^/?$" # RewriteRule "^/?$" "/pl" [L,R] # Correction for assets (no other languages present) # RewriteCond %{REQUEST_URI} /.+/(img|images|css|js|font|fonts|userfiles)/ # RewriteCond %{REQUEST_URI} "!^/?(?:admin|admin1234)" # RewriteRule ^.+/(img|images|css|js|font|fonts|userfiles)/(.+)$ /$1/$2 [QSA,L,R] # Correction for assets (other languages present) # RewriteCond %{REQUEST_URI} /(..)/.*/?(img|images|css|js|font|fonts|userfiles) # RewriteRule ^(..)/.*/?(img|images|css|js|font|fonts|userfiles)(.+)$ /$2$3 [QSA,L,R=301] # Moving to proper language # RewriteCond %{REQUEST_FILENAME} !-d # RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^(..)/?$ "index.php?lang=$1" [QSA,L] # Redirect homepage to proper id text RewriteRule ^([0-9]+)(-[^/]*)?/?$ index.php?m=$1 [L] # PHP ROUTE RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)(?:\.html?|\.php|/?)$ index.php?sel=$1 [QSA,NC,L] # OLD RewriteRule ^news/page/([0-9]+)/?$ index.php?m=1&p=$1 [L] RewriteRule ^news/([0-9]+)(-[^/]*)?/?$ index.php?m=1&a=$1 [L] # RewriteRule ^news(?:/|\.html?|\.php)?$ index.php?m=1 [L] RewriteRule ^([0-9]+)(-[^/]*)?/?$ index.php?m=7&s=$1 [L] RewriteRule ^([^,]*),([^,]*)(?:,.*(?:\.html?|\.php)?)?$ index.php?s=$1&m=$2 [L]
[-] favicon.ico
[edit]
[+]
logs
[+]
..
[+]
tmp
[+]
templates
[-] css.min.css
[edit]
[-] __.htaccess
[edit]
[-] robots.txt
[edit]
[+]
css
[+]
images
[+]
admin1234
[-] test.php
[edit]
[+]
img
[-] .htaccess
[edit]
[+]
lib
[-] js.min.js
[edit]
[-] product.html
[edit]
[-] sitemap-generator.php
[edit]
[+]
userfiles
[+]
fonts
[-] index.php
[edit]
[+]
scss
[+]
js