首页 > 解决方案 > 我在 url 中获得 repat 域名

问题描述

我的 URL 中出现重复域名

http://foo.example.com/foo.example.com/dashboard

访问代码

 <IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule . /index.html [L]
 </IfModule>

我想要的输出是http://foo.example.com/dashboard,有人看到我的错误吗?

标签: php.htaccess

解决方案


我找到了解决方案,问题在我的反应代码中。


推荐阅读