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