0
如何在.htaccess中創建重定向規則: - 早些時候,我們有400多個路徑。如何通過htaccess重定向
/blog/some-path1
/blog/some-path2
但現在我們有類似的路徑。
/some-path1
/some-path2
如何在不寫入多重重定向的情況下爲上述重定向創建單行重定向規則。
嘗試下面的規則,但不能在 RewriteBase/ 重寫規則1 ^博客/(.*)$/$ [L,NC,R]
謝謝阿布舍克,我一直在使用這下面的代碼固定
RewriteEngine on RedirectMatch ^/blog/(.*)$ /$1
– user3168006請幫我在這重定向https://stackoverflow.com/questions/44269702/path-string-wise-match-redirection-in-htaccess – user3168006