http://localhost:443/bitrix/
proxy_set_header Host $host:443;
proxy_redirect http://$host:443/ /;
https://localhost/bitrix/
/seek?full_slug=slovo&cat=-1&page=2
/seek
, а всё остальное в $args nginx.org/ru/docs/http/ngx_http_core_module.html#v...slovo может быть любым и page=2, может быть любым
как я и написал в ответе - используйте preg_replace_all()
pip install googletrans==4.0.0-rc1
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html|htm)\ HTTP/
RewriteRule ^(.*)index\.(php|html|htm)$ https://%{HTTP_HOST}/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ [^?]*/index\.(php|html|htm)
RewriteRule ^(.*)index\.(php|html|htm)$ https://%{HTTP_HOST}/$1 [R=301,L]
if temes is not None and 'github.com' in str(temes):
sublink = temes.get('href')
print(str(temes.text) + ' ' + str(sublink))
print('===')
if temes is not None and 'github.com' in str(temes):
sublink = temes.get('href')
m = temes.text.split(': ', 1)
if len(m) == 2:
translation = translator.translate(m[1], dest='ru', src='en')
print(m[0] + ': ' + translation.text + ' ' + sublink)
print('===')
if temes is not None and 'github.com' in str(temes):
sublink = temes.get('href')
m = re.search('^(.+?: )(.+)', temes.text)
if m:
translation = translator.translate(m.group(2), dest='ru', src='en')
print(m.group(1) + translation.text + ' ' + sublink)
print('===')
X-Redirect-By:
X-Powered-By: PHP
(\d+)-?(\d*)
или
(\d+)(?:-(\d+))?