Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-14-2004, 10:05 PM   PM User | #1
schleppel
Regular Coder

 
Join Date: Oct 2004
Posts: 330
Thanks: 0
Thanked 13 Times in 13 Posts
schleppel is an unknown quantity at this point
Apache

does anyone know how to get everybody redirected to a certain place, whatever URL they put in?

So if 6they put in www.mysite.com/directory/page.html or anyother URL like that, they get redirected to www.mysite.com/ ?
schleppel is offline   Reply With Quote
Old 11-15-2004, 11:55 AM   PM User | #2
4xz
Regular Coder

 
Join Date: Aug 2004
Location: localhost
Posts: 163
Thanks: 0
Thanked 1 Time in 1 Post
4xz is an unknown quantity at this point
How bout a php page called index.php with this contents :

<?php
header("Location: <url to go to>");
?>
4xz is offline   Reply With Quote
Old 11-15-2004, 04:00 PM   PM User | #3
chilipie
Senior Coder

 
chilipie's Avatar
 
Join Date: Jul 2004
Location: Shrewsbury, UK Age: 16
Posts: 1,117
Thanks: 0
Thanked 0 Times in 0 Posts
chilipie is an unknown quantity at this point
Wouldn't you have to place that in every directory though?
chilipie is offline   Reply With Quote
Old 11-15-2004, 08:49 PM   PM User | #4
hemebond
Senior Coder

 
Join Date: Jul 2004
Location: New Zealand
Posts: 1,315
Thanks: 0
Thanked 2 Times in 2 Posts
hemebond is an unknown quantity at this point
http://httpd.apache.org/docs/mod/mod_alias.html
hemebond is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:41 AM.


Advertisement
Log in to turn off these ads.