Auto-Redirection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Vicious
Forum Contributor
Posts: 105
Joined: Fri Jun 20, 2003 12:40 pm

Auto-Redirection

Post by Vicious »

Hey, I got a url ww.team101.net and I want it to automatically goto team101.net/html Does anyone know How I can do this?:
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

mod_rewrite is the most elegant solution. Also are the 2 url's actually different sites or do you want to just rewrite the url?
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Post by Sevengraff »

if you mean like a simple redirect then use header("location: http://www.team101.net/html/");
Vicious
Forum Contributor
Posts: 105
Joined: Fri Jun 20, 2003 12:40 pm

Post by Vicious »

Sevengraff wrote:if you mean like a simple redirect then use header("location: http://www.team101.net/html/");
thanks that worked
Post Reply