0
我使用這個WordPress插件重定向它提供的正則表達式https://wordpress.org/plugins/redirection/的URL重定向正則表達式語法
我一直用正則表達式的語法被徹底難倒了,所以我嘗試這樣做,這是行不通的
source: ^/(.*)/blog/(.*)$
target; ^/(.*)/(.*)$
重定向
http://example.com/anycategory/blog/anypage
到
http://example.com/anycategory/anypage
什麼是這樣做的目的這裏'/' – JBone
,讓斜線可選? – anubhava
@anubhava如何將(。*)僅限制爲字母?謝謝。 – user310291