Cake PHP-XML站点地图文件夹问题

Cake PHP-XML站点地图文件夹问题,php,xml,.htaccess,cakephp,cakephp-2.0,Php,Xml,.htaccess,Cakephp,Cakephp 2.0,我们正在使用国际搜索引擎优化策略, 当用户来自美国时,他将登陆美国网页(www.example.com/US-en),如果用户来自英国,他将登陆英国网页(www.example.com/gb-en) 现在我们需要在文件夹www.example.com/us-en/sitemap.xml上上传站点地图 当我们尝试打开此url(www.example.com/us en/sitemap.xml)时,它工作正常,但问题是当我们尝试打开(www.example.com/us en/)时,它会显示文件夹中

我们正在使用国际搜索引擎优化策略,
当用户来自美国时,他将登陆美国网页(www.example.com/US-en),如果用户来自英国,他将登陆英国网页(www.example.com/gb-en)

现在我们需要在文件夹www.example.com/us-en/sitemap.xml上上传站点地图 当我们尝试打开此url(www.example.com/us en/sitemap.xml)时,它工作正常,但问题是当我们尝试打开(www.example.com/us en/)时,它会显示文件夹中的所有文件,但实际上我们只需要显示网页,而不需要显示文件

我正在重定向特定国家/地区的所有url首键 如果用户来自美国

Router::connect(
'/:country',
array('controller' => 'Home', 'action' => 'index'),
array(

     'pass' => array('country')

)); 
.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on
    # Uncomment if you have a .well-known directory in the root folder, e.g. for the Let's Encrypt challenge
    # https://tools.ietf.org/html/rfc5785
    #RewriteRule ^(\.well-known/.*)$ $1 [L]
    RewriteRule ^$ app/webroot/ [L]
    RewriteRule (.*) app/webroot/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !server-status
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

重新启动发动机
#如果根文件夹中有.well-known目录,请取消注释,例如,对于Let's Encrypt挑战
# https://tools.ietf.org/html/rfc5785
#重写规则^(\.well-known/*)$$1[L]
重写规则^$app/webroot/[L]
重写规则(*)app/webroot/$1[L]
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}!服务器状态
重写规则^(.*)$index.php?url=$1[QSA,L]

/gb-en
起作用,而
/us-en
不起作用?是的,文件夹也是?他们在哪里?请将您的
htaccess
文件添加到问题中。us-en是网页slug和文件夹,但gb-en是唯一slug(或网页),您可以将
us-en
文件夹重命名为其他名称吗?