My link now is exp. http://example.com/index.php, how can I change this to exp. http://example.com/idex-home-page.html
Asked
Active
Viewed 42 times
-2
-
Skill yourself up with `mod_rewrite`: http://www.sitepoint.com/guide-url-rewriting/ – Darragh Enright Mar 16 '14 at 10:09
2 Answers
1
Try this in .htaccess
RewriteEngine on
RewriteRule idex-home-page.html index.php
You should look at this beginners tutorial as well:
http://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/

Ravi Dhoriya ツ
- 4,435
- 8
- 37
- 48
0
If i get you right.
You are either trying to change your home page dir. You dont want to get in htaccess stuff for this.
You can simply change your web server settings. Check documentation of your web server for that. For Apache this might be handy http://httpd.apache.org/docs/current/en/sections.html
There is bunch of solutions for that. It might be a work around solution for your case probably but. in your index.php
<meta http-equiv="refresh" content="1;url=http://example.com">
OR
<script type="text/javascript">
window.location.href = "http://example.com"
</script>
Taken from : Redirect from an HTML page

Community
- 1
- 1

user2102266
- 539
- 3
- 14