我在htaccess上有以下配置
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteRule ^(.*)$ test/public/$1 [L]
RewriteRule ^test_page(.*)$ https://www.testing.com/test_page/$1 [NC,R=301,L]
https://www.testing.com/test_page/
https://www.testing.com/test_page
,它会将我重定向到
https://www.testing.com/test/public/test_page
必须有一个尾随斜杠,我可以路由到我的wordpress网站。
怎样才能使
https://www.testing.com/test_页面
路线到
https://www.testing.com/test_页面/
用我现在的规则?
请求URL:
https://www.testing.com/test_page
https://www.testing.com/test_page/