Need to show index.html in my url



Need to know how to show the full URL of my website, I would need to pass: to
I’ve tried all types of redirect and rewrite, but none worked out. I hope you can help me.

Over Apache2


This is a pretty easy solution, a search would have revealed it easily. Try this.

RewriteEngine On
RewriteBase /

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

Answered By – Panama Jack

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More