I need a help on
.htaccess file with rewrite rule to
1)when a user hits my site, I want to redirect to /dialogue/index.html
2)When the user types /home.php i want to redirect to /home.php
How to accomblish in .htaccess file.
Help would be appreciated.
Thanks
.htaccess help me pls
Moderator: General Moderators
Searching Google will give you lots of results for .htaccess redirects. I suggest you do that, as my example will not necessarily be 100% accurate:
This assumes your index page is an html page. Change 'index.html' to whatever you actually have.
Your second question makes no sense to me as it appears both pages are actually the same page. I'm assuming that's just a typo?
This assumes your index page is an html page. Change 'index.html' to whatever you actually have.
Code: Select all
Redirect index.html /dialogue/index.htmlReal programmers don't comment their code. If it was hard to write, it should be hard to understand.