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: allow access to index.php with index.html present
Author
danjde



Joined: 09 Nov 2015
Posts: 2
Location: Italy

PostPosted: Mon 09 Nov '15 23:20    Post subject: allow access to index.php with index.html present Reply with quote

Hi friends,
on a low cost web hosting, I would like to make readable both "index.html" and "index.php", with "index.html" primary.

For example I would show to the visitors the content of
"www.foo.com/index.html" and if invoked directly "www.foo.com/index.php".

Now I can see only "www.foo.com/index.html" and if put on browser the "www.foo.com/index.php" address, obatin the content of "www.foo.com/index.html"

I've set on .htaccess

Code:
DirectoryIndex index.html index.php


with no luck

Have you any suggestion?

many thanks!

Davide
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7372
Location: Germany, Next to Hamburg

PostPosted: Thu 12 Nov '15 18:59    Post subject: Reply with quote

Do you have any rewrite rules enabled?
Are you allowed by the server config to change that via .htaccess?
Back to top
danjde



Joined: 09 Nov 2015
Posts: 2
Location: Italy

PostPosted: Fri 13 Nov '15 22:49    Post subject: Reply with quote

Yes, I can write local .htaccess in my root server directory.


many thanks!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7372
Location: Germany, Next to Hamburg

PostPosted: Mon 16 Nov '15 18:43    Post subject: Reply with quote

Did that help / solve your problem?
Back to top


Reply to topic   Topic: allow access to index.php with index.html present View previous topic :: View next topic
Post new topic   Forum Index -> Apache