ffsdmad/af-web/master/www/.htaccess - Htaccess File
ffsdmad/af-web/master/www/.htaccess
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# листание списка описей фонда
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} volontirs.opis_list/([0-9]+)/([0-9]+).html
RewriteRule volontirs.opis_list/([0-9]+)/([0-9]+).html /cgi-bin/app2.py?plugins=volontirs.opis_list&FOND_ID=$1&p=$2 [L]
# листание списка дел
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/volontirs.delo_list/[0-9]+/[0-9]+.html
RewriteRule volontirs.delo_list/([0-9]+)/([0-9]+).html /cgi-bin/app2.py?plugins=volontirs.delo_list&OPIS_ID=$1&p=$2 [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_URI} ^/opis-list-delo-[0-9]
#RewriteRule opis-list-delo-([0-9]+) /cgi-bin/app2.py?plugins=public.delo_list&OPIS_ID=$1 [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} ^/opis-list-delo-[0-9]
# RewriteRule opis-list-delo-([0-9]+) /cgi-bin/app2.py?plugins=public.delo_list&OPIS_ID=$1 [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} ^/fond-opis-[0-9]
# RewriteRule fond-opis-([0-9]+) /cgi-bin/app2.py?plugins=public.opis_list&FOND_ID=$1 [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} ^/[^/]+/[0-9].html
# RewriteRule ([^/]+)/([0-9]+) /cgi-bin/app2.py?plugins=$1&p=$2 [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} ^/[^/]+/all/[0-9]
# RewriteRule ([^/]+)/all/([0-9]+) /cgi-bin/app2.py?plugins=$1&l=$2 [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} ^/fond-[0-9]
# RewriteRule fond-([0-9]+) /cgi-bin/app2.py?plugins=public.fond_show&FOND_ID=$1 [L]
# список дел
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/public.opis-list-delo-[0-9]+.html
RewriteRule opis-list-delo-([0-9]+).html /cgi-bin/app2.py?plugins=public.delo_list&OPIS_ID=$1&SQL=1 [L]
# листание списка дел
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/public.delo_list/[0-9]+/[0-9]+.html
RewriteRule public.delo_list/([0-9]+)/([0-9]+).html /cgi-bin/app2.py?plugins=public.delo_list&OPIS_ID=$1&p=$2 [L]
# листание списка описей фонда
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/public.opis_list/([0-9]+)/([0-9]+).html
RewriteRule public.opis_list/([0-9]+)/([0-9]+).html /cgi-bin/app2.py?plugins=public.opis_list&FOND_ID=$1&p=$2 [L]
# просмотр фонда
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/public.fond-opis-[0-9]+.html
RewriteRule public.fond-opis-([0-9]+).html /cgi-bin/app2.py?plugins=public.opis_list&FOND_ID=$1 [L]
# просмотр фонда
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/public.fond-([0-9]+).html$
RewriteRule public.fond-([0-9]+).html /cgi-bin/app2.py?plugins=public.fond_show&FOND_ID=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(public.[^/]+)/(.*).html$
RewriteRule (public.[^/]+)/(.*).html /cgi-bin/app2.py?plugins=$1&p=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(public.[^/]+)/?([0-9]+)?/(.*)$
RewriteRule (public.[^/]+)/?([0-9]+)?/(.*) /cgi-bin/app2.py?plugins=$1&q=$3&p=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{THE_REQUEST} GET /public.search?q=(.*) HTTP
RewriteRule public.search /cgi-bin/app2.py?plugins=public.search&q=%1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* /cgi-bin/app2.py?plugins=public.fond [L]
</IfModule>
On Github License
Files
Download PDF of Htaccess file