.htaccess help me pls

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Locked
sharugan
Forum Newbie
Posts: 4
Joined: Tue Oct 24, 2006 4:25 pm

.htaccess help me pls

Post by sharugan »

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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

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.

Code: Select all

Redirect index.html /dialogue/index.html
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?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Sharugan, you already have a topic on this. There's no need for another one. Locked.
Locked