0
  If the request_uri is starting with "^/country/location/London/" then any thing after "/country/location/London/(.*)" should redirect to "/$1" and fetch the data from back-end for "/country/location/London/$1"

尝试了一些规则如下。

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/country/location/london/ [NC]
RewriteRule ^/(.*)\.html$ /$1.html [NC,L,PT] 
RewriteCond %{REQUEST_URI} ^/country/location/germany/ [NC]
RewriteRule ^/(.*)\.html$ /$1.html [NC,L,PT]
4

0 回答 0