Avatar of Brodie Krause
Brodie Krause
Flag 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.
Apache Web ServerWeb Servers

Avatar of undefined
Last Comment
arober11

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Omar_El_Sergany

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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.
arober11

Or add a symbolic link e.g.

cd /var/www/directory/
ln -s  testfile.html   index.html
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy