24 lines
759 B
ApacheConf
24 lines
759 B
ApacheConf
# Turn on URL rewriting
|
|
RewriteEngine On
|
|
|
|
# Installation directory
|
|
RewriteBase /
|
|
|
|
# Protect application and system files from being viewed
|
|
RewriteRule ^(application|modules|system) - [F,L]
|
|
|
|
|
|
#stare strony przekierowanie
|
|
RewriteCond %{REQUEST_URI} /urzadzenia-uslugowe-i-produkcyjne-monochromatyczne
|
|
RewriteRule .* http://%{HTTP_HOST}/urzadzenia-uslugowe-monochromatyczne [R=301,L]
|
|
|
|
RewriteCond %{REQUEST_URI} /urzadzenia-uslugowe-i-produkcyjne-kolorowe
|
|
RewriteRule .* http://%{HTTP_HOST}/urzadzenia-uslugowe-kolorowe [R=301,L]
|
|
|
|
# Allow any files or directories that exist to be displayed directly
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
# Rewrite all other URLs to index.php/URL
|
|
RewriteRule ^(.+)$ index.php?kohana_uri=$1 [L]
|