【问题标题】:Need to show index.html in my url需要在我的网址中显示 index.html
【发布时间】:2015-09-26 05:27:38
【问题描述】:

需要知道如何显示我网站的完整 URL,我需要通过: www.ejemlo.com.ar 到 www.ejemlo.com.ar/index.html 我尝试了所有类型的重定向和重写,但都没有成功。我希望你能帮助我。

超过 Apache2

【问题讨论】:

  • 发布您的示例将有助于获得更好的答案。

标签: .htaccess apache2


【解决方案1】:

这是一个非常简单的解决方案,搜索会很容易地发现它。试试这个。

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^$
RewriteCond %{HTTP_HOST} ^(www\.)?ejemplo\.com\.ar$
RewriteRule ^$ http://%{HTTP_HOST}/index.html [L,R=301]

【讨论】:

  • 谢谢!!!它不能解决我的问题,因为问题出在 angularjs 的配置中;但你的回答很有帮助!
猜你喜欢
  • 2016-09-21
  • 1970-01-01
  • 1970-01-01
  • 2013-09-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-12-29
  • 2019-09-07
相关资源
最近更新 更多