Files
eng.vidok.com/.htaccess
2025-03-06 19:27:29 +01:00

170 lines
8.2 KiB
ApacheConf

RewriteEngine On
RewriteBase /
Options +FollowSymlinks
Options -Indexes
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=permanent]
## Remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_URI} !^/admin/(.*) [NC]
RewriteRule ^(.*)/$ https://%{HTTP_HOST}/$1 [L,R=301]
ErrorDocument 404 /404.html
RewriteCond %{REQUEST_URI} !^(.*)/libraries/(.*) [NC]
RewriteCond %{REQUEST_URI} !^(.*)/css/(.*) [NC]
RewriteRule ^admin/([^/]*)/([^/]*)/(.*)$ admin/index.php?module=$1&action=$2&$3 [L]
RewriteRule ^admin/$ admin/index.php [L]
RewriteRule ^wyszukiwarka(|/)$ index.php?search=true&lang=pl [L]
RewriteRule ^wersja-tymczasowa(|/)$ index.php?devel=true&lang=pl [L]
RewriteRule ^pixieset/(.*)$ index.php?module=articles&action=image&hash=$1 [L]
RewriteRule ^pixieset-wszystkie/(.*)$ index.php?module=articles&action=images_download&hash=$1 [L]
RewriteRule ^audyt-seo/wynik(|/)$ index.php?module=auditSEO&action=main_view&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_URI} ^/auditSEO/(.*) [NC]
RewriteRule ^([^/]*)/([^/]*)/(.*)$ index.php?module=$1&action=$2&$3 [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.php
RewriteRule ^ /%1 [R=301,L]
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresByType text/x-component "access plus 1 year"
ExpiresByType text/html "access plus 0 seconds"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"
ExpiresByType audio/ogg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/ogg "access plus 1 year"
ExpiresByType video/webm "access plus 1 year"
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType font/opentype "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
</IfModule>
<Files *.conf>
Order Deny,Allow
Deny from all
</Files>
<Files *.log>
Order Deny,Allow
Deny from all
</Files>
<Files *.ini>
Order Deny,Allow
Deny from all
</Files>
RewriteRule ^pl/$ index.php?a=change_language&id=pl [L]
RewriteRule ^$ index.php?a=page&id=1&lang=pl&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_URI} ^/home$
RewriteRule ^(.*)$ https://eng.vidok.com/ [R=301,L]
RewriteCond %{REQUEST_URI} ^/home/s/1$
RewriteRule ^(.*)$ https://eng.vidok.com/ [R=301,L]
RewriteCond %{REQUEST_URI} "^/$"
RewriteRule ^$ index.php?a=page&id=1&lang=pl [L]
RewriteRule ^home(|/)$ index.php?a=page&id=1&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^home/s/1(|/)$ home [R=301,L]
RewriteRule ^home/s/([0-9]+)(|/)$ index.php?a=page&id=1&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^facades(|/)$ index.php?a=page&id=2&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^facades/s/1(|/)$ facades [R=301,L]
RewriteRule ^facades/s/([0-9]+)(|/)$ index.php?a=page&id=2&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^about-us(|/)$ index.php?a=page&id=15&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^about-us/s/1(|/)$ about-us [R=301,L]
RewriteRule ^about-us/s/([0-9]+)(|/)$ index.php?a=page&id=15&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^windows(|/)$ index.php?a=page&id=3&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^windows/s/1(|/)$ windows [R=301,L]
RewriteRule ^windows/s/([0-9]+)(|/)$ index.php?a=page&id=3&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^downloads(|/)$ index.php?a=page&id=16&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^downloads/s/1(|/)$ downloads [R=301,L]
RewriteRule ^downloads/s/([0-9]+)(|/)$ index.php?a=page&id=16&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^aluminium-windows(|/)$ index.php?a=page&id=9&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^aluminium-windows/s/1(|/)$ aluminium-windows [R=301,L]
RewriteRule ^aluminium-windows/s/([0-9]+)(|/)$ index.php?a=page&id=9&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^wooden-windows(|/)$ index.php?a=page&id=10&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^wooden-windows/s/1(|/)$ wooden-windows [R=301,L]
RewriteRule ^wooden-windows/s/([0-9]+)(|/)$ index.php?a=page&id=10&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^pvcu-windows(|/)$ index.php?a=page&id=11&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^pvcu-windows/s/1(|/)$ pvcu-windows [R=301,L]
RewriteRule ^pvcu-windows/s/([0-9]+)(|/)$ index.php?a=page&id=11&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^pvcu-aluminium-windows(|/)$ index.php?a=page&id=12&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^pvcu-aluminium-windows/s/1(|/)$ pvcu-aluminium-windows [R=301,L]
RewriteRule ^pvcu-aluminium-windows/s/([0-9]+)(|/)$ index.php?a=page&id=12&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^wooden-aluminium-windows(|/)$ index.php?a=page&id=13&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^wooden-aluminium-windows/s/1(|/)$ wooden-aluminium-windows [R=301,L]
RewriteRule ^wooden-aluminium-windows/s/([0-9]+)(|/)$ index.php?a=page&id=13&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^doors(|/)$ index.php?a=page&id=19&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^doors/s/1(|/)$ doors [R=301,L]
RewriteRule ^doors/s/([0-9]+)(|/)$ index.php?a=page&id=19&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^sliding-doors(|/)$ index.php?a=page&id=4&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^sliding-doors/s/1(|/)$ sliding-doors [R=301,L]
RewriteRule ^sliding-doors/s/([0-9]+)(|/)$ index.php?a=page&id=4&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^entrance-doors(|/)$ index.php?a=page&id=20&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^entrance-doors/s/1(|/)$ entrance-doors [R=301,L]
RewriteRule ^entrance-doors/s/([0-9]+)(|/)$ index.php?a=page&id=20&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^shutters(|/)$ index.php?a=page&id=5&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^shutters/s/1(|/)$ shutters [R=301,L]
RewriteRule ^shutters/s/([0-9]+)(|/)$ index.php?a=page&id=5&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^b2b-partners(|/)$ index.php?a=page&id=8&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^b2b-partners/s/1(|/)$ b2b-partners [R=301,L]
RewriteRule ^b2b-partners/s/([0-9]+)(|/)$ index.php?a=page&id=8&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^black-week(|/)$ index.php?a=page&id=17&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^black-week/s/1(|/)$ black-week [R=301,L]
RewriteRule ^black-week/s/([0-9]+)(|/)$ index.php?a=page&id=17&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^contact(|/)$ index.php?a=page&id=7&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^contact/s/1(|/)$ contact [R=301,L]
RewriteRule ^contact/s/([0-9]+)(|/)$ index.php?a=page&id=7&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^details(|/)$ index.php?a=page&id=14&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^details/s/1(|/)$ details [R=301,L]
RewriteRule ^details/s/([0-9]+)(|/)$ index.php?a=page&id=14&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^entrance-doors-dev(|/)$ index.php?a=page&id=18&lang=pl&%{QUERY_STRING} [L]
RewriteRule ^entrance-doors-dev/s/1(|/)$ entrance-doors-dev [R=301,L]
RewriteRule ^entrance-doors-dev/s/([0-9]+)(|/)$ index.php?a=page&id=18&lang=pl&bs=$1&%{QUERY_STRING} [L]
RewriteRule ^download/GTS(|/)$ download.php?file=3&hash=6a899f6a0e55a78c6565369631778a33 [L]
RewriteRule ^oferty-pracy(|/)$ index.php?module=globelusAdverts&action=adverts_list&cp=1&%{QUERY_STRING} [L]
RewriteRule ^newsletter/signin$ index.php?module=newsletter&action=signin [L]
RewriteRule ^newsletter/confirm/hash=(.*)$ index.php?module=newsletter&action=confirm&hash=$1 [L]
RewriteRule ^newsletter/unsubscribe/hash=(.*)$ index.php?module=newsletter&action=unsubscribe&hash=$1 [L]