2017-07-29

Regex in allowed sites.

Hello, Chris! Can I use regex, for example,
domain:*.ru
or
https?://*.ru
in allowed_sites section in crawl.ini?
Hello, Chris! Can I use regex, for example, domain:*.ru or https?://*.ru in allowed_sites section in crawl.ini?
2017-07-30

-- Regex in allowed sites
Hi Melihovv,
The allowed_sites sections does not accept arbitrary regex. domain:.ru would match any site domain whose domain ends with .ru. * can be used to match 0 or more characters. You would have to have two separate lines to allow both the https and http site.
Best,
Chris
(Edited: 2017-07-30)
Hi Melihovv, The allowed_sites sections does not accept arbitrary regex. domain:.ru would match any site domain whose domain ends with .ru. * can be used to match 0 or more characters. You would have to have two separate lines to allow both the https and http site. Best, Chris
X