Link to home
Start Free TrialLog in
Avatar of Brodie Krause
Brodie KrauseFlag for United States of America

asked on

Apache Redirect/Alias/Default Document?

We have a website hosted on an Apache server.  (I am completely unfamiliar with the Apache platform, my experience is in IIS)

Our marketing department wants to publish a URL, www.site.com/directory and they want it to automatically pull up www.site.com/directory/testfile.html 

In IIS, I'd just set the default document for that directory to the desired file.

I have no idea how to do this in Apache.
ASKER CERTIFIED SOLUTION
Avatar of Omar_El_Sergany
Omar_El_Sergany

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dave Baldwin
You could just change the name of the file to that of the default document.  Wouldn't require you to change anything else.
Or add a symbolic link e.g.

cd /var/www/directory/
ln -s  testfile.html   index.html