ffsdmad/af-web/master/www/volontirs/.htaccess - Htaccess File

ffsdmad/af-web/master/www/volontirs/.htaccess

AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

# список дел
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/volontirs.opis-list-delo-[0-9]+.html
    RewriteRule opis-list-delo-([0-9]+).html /cgi-bin/app2.py?plugins=volontirs.delo_list&OPIS_ID=$1 [L]

# листание списка дел
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/volontirs.delo_list/[0-9]+/[0-9]+.html
    RewriteRule public.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} 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} fond-opis-[0-9]+.html
    RewriteRule fond-opis-([0-9]+).html /cgi-bin/app2.py?plugins=volontirs.opis_list&FOND_ID=$1 [L]

# просмотр фонда
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} fond-([0-9]+).html$
    RewriteRule fond-([0-9]+).html /cgi-bin/app2.py?plugins=volontirs.fond_show&FOND_ID=$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/(volontirs.[^/]+)/(.*).html$
    RewriteRule (volontirs.[^/]+)/(.*).html /cgi-bin/app2.py?plugins=$1&p=$2 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/([^/]+)/?([0-9]+)?/(.*)$
    RewriteRule ([^/]+)/?([0-9]+)?/(.*) /cgi-bin/app2.py?plugins=volontirs.$1&q=$3&p=$2 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{THE_REQUEST}    search?q=(.*) HTTP
    RewriteRule search /cgi-bin/app2.py?plugins=volontirs.search&q=%1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} ^/volontirs/$
    RewriteRule .* /cgi-bin/app2.py?plugins=volontirs.fond [L]

</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI, THE_REQUEST

Comments

Apache