ivphpan/podryad/master/web/.htaccess
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
##redirect
Redirect 301 /exchange/contractor?specialization=remont-i-otdelka http://podryad.kz/exchange/contractor/remont-i-otdelka
Redirect 301 /exchange/contractor?specialization=stroitelstvo http://podryad.kz/exchange/contractor/stroitelstvo
#убрать slash
RewriteCond %{REQUEST_URI} !?
RewriteCond %{REQUEST_URI} !&
RewriteCond %{REQUEST_URI} !=
RewriteCond %{REQUEST_URI} !.
RewriteCond %{REQUEST_URI} ![^/]$
RewriteRule ^(.*)/$ /$1 [R=301,L]
#www
RewriteCond %{HTTP_HOST} ^www.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
# Если файл или каталог не существует, идём к /web/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
On Github License
Files