Forum Moderators: phranque

Message Too Old, No Replies

Apache Redirects

How to setup auto redirects

         

jmdesign

8:03 pm on May 8, 2009 (gmt 0)

10+ Year Member



Hi All,

I've stumbled across these forums whilst looking up something for a friend. He's got his own virtual server running Apache and wants to change the way that folders/file work.

At the moment whenever someone goes to www.domainname.com they aren't automated taken to the index page, they end up seeing all the website's files. This hapens with every site on his server. I assume there must be some kind of rule to add to the httpd.conf file to make this happen automatically server-wide?

Can anyone help or point me in the right direction?

Many thanks,

James

jdMorgan

8:19 pm on May 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Apache mod_dir documentation, and the DirectoryIndex directive specifically.

Jim

jmdesign

8:37 pm on May 8, 2009 (gmt 0)

10+ Year Member



Thanks Jim will give that a look.

James