尝试使用covid-19 dashboard的@anubhava在美国的solution上显示quarantine.country/coronavirus/dashboard/usa/
而不是quarantine.country/coronavirus/dashboard/region/usa/
:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /coronavirus/dashboard/
RewriteRule ^region/(.*)$ /$1 [L,NC,R]
答案 0 :(得分:0)
您可以在/coronavirus/dashboard/.htaccess
中使用以下规则:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /coronavirus/dashboard/
RewriteRule ^(?!region/).*$ region/$0 [L,NC]
这将使您将URL用作:
https://quarantine.country/coronavirus/dashboard/usa/