2015-09-25 95 views
-1

需要知道如何顯示我的網站的完整URL,我需要通過: www.ejemplo.com.ar到www.ejemplo.com.ar/ index .html 我試過所有類型的重定向和重寫,但沒有解決。我希望你能幫助我。需要顯示index.html在我的網址

在Apache2的

+0

發佈您的示例將有助於獲得更好的答案。 – ToothlessRebel

回答

0

這是一個非常簡單的解決方案,搜索會很容易發現它。嘗試這個。

RewriteEngine On 
RewriteBase/

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

謝謝!它不能解決我的問題,因爲問題是在angularjs的配置中;但你的回答很有幫助! – Luciano