Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Redirecting/aliases |
|
Author |
|
dmjmusser
Joined: 21 Sep 2007 Posts: 1 Location: Southfield, MI
|
Posted: Fri 21 Sep '07 21:48 Post subject: Redirecting/aliases |
|
|
I have a client-facing application running at support.mydomain.com/support/index.php. I would like for users to be able to access the application simply by visiting support.mydomain.com. I've tried changing the directory index, but doing that screws up the links on the page. Therefore, I'm turning to redirecting or using an alias to achieve the desired effect. Any suggestions on how I would go about doing this? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7374 Location: Germany, Next to Hamburg
|
Posted: Tue 02 Oct '07 9:55 Post subject: |
|
|
You could use a redirect with php in the root folder
Code: |
<?php
header("Location: /support/index.php");
exit();
?>
|
That requires that index.php is in your DirectoryIndex index.php index.htm index.html in httpd.conf |
|
Back to top |
|
|
|
|
|
|