Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: allow access to index.php with index.html present |
|
Author |
|
danjde
Joined: 09 Nov 2015 Posts: 2 Location: Italy
|
Posted: Mon 09 Nov '15 23:20 Post subject: allow access to index.php with index.html present |
|
|
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: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 12 Nov '15 18:59 Post subject: |
|
|
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
|
Posted: Fri 13 Nov '15 22:49 Post subject: |
|
|
Yes, I can write local .htaccess in my root server directory.
many thanks! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 16 Nov '15 18:43 Post subject: |
|
|
Did that help / solve your problem? |
|
Back to top |
|
|
|
|
|
|