logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Redirecting/aliases
Author
dmjmusser



Joined: 21 Sep 2007
Posts: 1
Location: Southfield, MI

PostPosted: Fri 21 Sep '07 21:48    Post subject: Redirecting/aliases Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Tue 02 Oct '07 9:55    Post subject: Reply with quote

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


Reply to topic   Topic: Redirecting/aliases View previous topic :: View next topic
Post new topic   Forum Index -> Apache