/((?:https?|ftps?)\:\/\/[\w\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?|\n)/g;/((?:https?|ftps?)\:\/\/[\w\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?|\n+)/g; RewriteCond expr "-R '111.1.0.0/16'"RewriteCond expr "-R '111.1.0.0/16' || -R '222.2.2.0/24' || -R '127.0.0.0/8'" /((?:http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?)/g/((?:https?|ftps?)\:\/\/[\w\-\.]+\.[a-zA-Z]{2,3}(?:\/\S*)?)/g RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{SERVER_NAME} ^(?:www\.)?(.+)
RewriteRule (.*) https://%1/$1 [R=301,L] (http:[a-z\d_./]*|\G(?!\A))\h([a-z\d_./]+) (http:[a-z\d_./]*|\G(?!\A)) ([a-z\d_./]+)In .htaccess files, the maximum length is 8190 characters.
(...|...|...)RewriteRule ^(devushki|eakuliacia|erekcia|exercise|kontracepcia)-(.+\.html)$ http://www.medow.ru/sex/$2 [R=301,L] (.*) совпадёт с /1/ и с /1/2/3/.(.*) на ([^/]*)
Чем не подошел тот вариант?