Questions tagged [directoryindex]
70 questions
1
vote
0 answers
Emulate DirectoryIndex in Django dev server
I'm able to configure a new Django project to serve static files. This is the project layout:
.
├── __init__.py
├── manage.py
├── settings.py
├── mystatic
│ └── index.html
└── urls.py
settings.py:
STATICFILES_DIRS = (
…
![](../../users/profiles/573034.webp)
Paolo
- 16,171
- 20
- 78
- 110
1
vote
2 answers
.htaccess rewrite rule ,last query string is append to the url
Hi i make one cms sites and i need to rewrite my url
current my url is http://www.example.com/index.php?link=pages&cmsid=2&cmsLink=Carpet
it refers the cmsLink
I want my url like http://www.example.com/Carpet
I am using the following code
Options…
![](../../users/profiles/970918.webp)
Hardik Raval
- 1,940
- 16
- 29
1
vote
1 answer
Zend Framework App with static html pointed to domain root
A Zend newbie here. Please help.
We've deployed a bunch of static html pages (in var/www/html) and then a ZF app to our server. We want www.ourdomain.com to point to the index.html (static html) and not redirect to our ZF app (index.php). Only when…
![](../../users/profiles/905234.webp)
user905234
- 43
- 4
1
vote
1 answer
Apache2 DirectoryIndex Issue
I am a little stuck and am sure that this is a trivial problem, but just can't seem to find the right solution.
I have a local development server running apache2 w/mod_ssl & mod_rewrite.
I created a self-signed cert and added the respective virtual…
![](../../users/profiles/485710.webp)
Skittles
- 2,728
- 9
- 27
- 34
1
vote
2 answers
REQUEST_URI is populated with default-file (DirectoryIndex) /index.html
After a migration to a new server with Centos some behaviour changed.
The environment-variable REQUEST_URI contains '/index.html' when http://example.com is fetched (without the index.html).
I would expect:
REQUEST_URI is '/' when…
![](../../users/profiles/5309471.webp)
Roger Van Montfort
- 41
- 3
1
vote
0 answers
.htaccess Directory Index not working in sub-folders
I have the following .htaccess file in my root folder:
Order allow,deny
Deny from all
DirectoryIndex index.php
ErrorDocument 404 /not-found.php
RewriteEngine On
RewriteBase /
RewriteRule ^@([^/]+)$…
![](../../users/profiles/8613688.webp)
Gabri
- 121
- 9
1
vote
1 answer
Can I declare the DirectoryIndex In .htaccess Non-recursively?
In my /httpdocs/ folder I need to change the filename of index.php. I did this by writing a new line to my .htaccess file:
DirectoryIndex index2.php
However, it seems that all subfolders under /httpdocs/ were looking for index2.php for their…
![](../../users/profiles/408244.webp)
Jarred
- 1,746
- 5
- 25
- 42
1
vote
1 answer
Is there a feature like DirectoryIndex on Apache for Kitura?
In apache I have the possibility to display the directory index instead of the index.html file. Like this:
Is there a similar feature in Kitura, that allows me to simply display the contents of the directory instead of having an index.html?
![](../../users/profiles/347445.webp)
gebirgsbärbel
- 2,201
- 1
- 22
- 37
1
vote
1 answer
Dynamic DirectoryIndex (Regex DirectoryIndex?)
In Apache, is it possible to have a dynamic/regex DirectoryIndex Directive?
Normal DirectoryIndex would do:
server/DIRECTORY1 --> server/DIRECTORY1/index.html
server/DIR1/DIR2 --> server/DIR1/DIR2/index.html
...
etc
But how would I…
![](../../users/profiles/4396817.webp)
Sheffie
- 195
- 1
- 10
1
vote
1 answer
.htaccess prevent subdirectory browsing and update URL in browser
I'm trying to prevent browsing of files in a subdirectory by displaying a specific page, at the same time as preventing duplicate content on two URLs.
I have several files in a subdirectory, for…
![](../../users/profiles/4069224.webp)
Gary
- 45
- 5
1
vote
2 answers
Ruby on Rails - Static page as start page
I am developing an app in RoR which has static and dynamic parts. The static portion is placed in the public/ folder of the app. Now if i have an index.html in my public folder then i will not be able to use the routes configured in my routes.rb The…
![](../../users/profiles/305867.webp)
meetraghu28
- 15
- 1
- 4
1
vote
1 answer
Show directory tree instead of index.html
how can I define apache virtual host to show a directory tree even if index.html/php exists?
![](../../users/profiles/888280.webp)
jeff
- 959
- 1
- 16
- 37
1
vote
1 answer
Can I make (DirectoryIndex) in .htaccess file variable with current directory?
I know i can use
DirectoryIndex index.php products.php for default files.
But,is it possible to make it variable with current folder so it will be something like this :
DirectoryIndex CurrentFolderName.php
or appending some text like…
![](../../users/profiles/3374168.webp)
Amr Samir
- 11
- 3
1
vote
1 answer
.htaccess DirectoryIndex page links broken
In my .htaccess file the DirectoryIndex is set to /page/main/home.html
Therefore when I go to www.thisexample.com the browser address bar shows www.thisexample.com while actually loading www.thisexample.com/page/main/home.html. This is all great but…
![](../../users/profiles/1345660.webp)
user1345660
- 37
- 5
1
vote
2 answers
Apache - disable single option override
How do I disable single option override in specific folder in Apache? I'd like to force DirectoryIndex value in specific folder, so DirectoryIndex option in .htaccess of that folder will be ignored. I'd expect configuration should look somehow…
![](../../users/profiles/2360233.webp)
trebi
- 353
- 1
- 3
- 12