RewriteCond %{QUERY_STRING} (?:^|&)p=
RewriteRule ^ https://site.ru/? [R=301,L]
rewrite ^ /public-service/ break;
proxy_pass https://example.com;
proxy_set_header Host $host;
httpS://public-service.com
так что нужен не listen 80;
, а listen 443 ssl;
.(?:^|\|).*?(?:\||$)[^\s|]*\K|\s
((?:^|\|).*?(?:\||$)[^\s|]*)|\s
$1
RewriteCond %{THE_REQUEST} " /dop_pages/([^?]+)/index\.html"
RewriteRule ^ /%1/ [R=301,L,NE]
RewriteCond %{DOCUMENT_ROOT}/dop_pages/$1/index.html -f
RewriteRule ^(.+)/$ /dop_pages/$1/index.html [L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} mode=archive
RewriteCond %{QUERY_STRING} ^(?=.*?year=(\d+))(?=.*?number=(\d+))
RewriteRule ^index\.php$ /ru/archive/%1/%2/? [R=301,L]
RewriteCond %{THE_REQUEST} ^\S+\s/index\.php\?(?=.*?mode=archive)(?=.*?year=(\d+))(?=.*?number=(\d+))
RewriteRule ^ /ru/archive/%1/%2/? [R=301,L]
index.php
, а параметры dispatch=discussion.view&thread_id=1
следует искать в %{QUERY_STRING} или %{THE_REQUEST}.RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{QUERY_STRING} (?:^|&)dispatch=discussion\.view(?:$|&)
RewriteCond %{QUERY_STRING} (?:^|&)thread_id=(\d+)(?:$|&)
RewriteRule ^index\.php$ /reviews/%1/? [R=301,L]
RewriteRule ^reviews/(\d+)/$ /index.php?dispatch=discussion.view&thread_id=$1 [L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)\.html$ /$1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^([^.]+)$ /$1.html [L]
groupRegexp := regexp.MustCompile(`/reports/schedule/Group/([0-9]{4,})_([12])_([0-9]{8})_([0-9]{8})\.pdf`)
doc := GetHtml(config.C.GroupPage) // Получение html кода страницы
datesGroup := groupRegexp.FindAllStringSubmatch(doc, -1)
for _, val := range datesGroup {
fmt.Println(val[0], val[1], val[2], val[3], val[4]) // вывод найденных элементов
}