PATH:
root
/
alutechnik
# :Location /*.php # Use php73 # :Location AddDefaultCharset UTF-8 php_value default_charset UTF-8 Options +FollowSymLinks -MultiViews DirectoryIndex index.php RewriteEngine On # RewriteBase /inter-jkz/ # Disable admin panel # RewriteRule ^/?admin1234(.*)$ . [QSD,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] # Redirect homepage to proper id text RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(?:.*/)?(?:.*/)?([0-9]+),([0-9]+),(.*)/?$ index.php?s=$1&m=$2&sel=$3 [QSA,NE,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([0-9]+)(-[^/]*)?/?$ index.php?m=$1 [QSA,L] # PHP ROUTER RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) index.php?sel=$1 [QSA,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] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([0-9]+)(-[^/]*)?/?$ index.php?m=7&s=$1 [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f 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