Questions tagged [directoryindex]
70 questions
0
votes
0 answers
Full list of index/default file names
I am creating a spider for one of my websites and I need a way to determine what the index file of a website is. I understand there are a lot of different file names. I am not worried about those who set custom filenames. Below is a list of what…
![](../../users/profiles/1623738.webp)
James
- 722
- 2
- 14
- 34
0
votes
2 answers
htaccess DirectoryIndex on subdomain not working
I have a subdomain (like subdomain.domain.com) set up on my webserver. The main site is in 'httpdocs' and the subdomain's files are in the folder 'subdomain' on the same level as 'httpdocs'. There is no .htaccess file in 'httpdocs'.
I have .htaccess…
![](../../users/profiles/1554014.webp)
Jaap Veldhorst
- 29
- 1
- 1
- 5
0
votes
1 answer
Rewrite Rule custom index file Drupal installation
This is the current Rewrite rule of Drupal set in my htaccess file:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !=/index.html
RewriteRule…
![](../../users/profiles/577021.webp)
Mitch D.
- 1
0
votes
1 answer
htaccess DirectoryIndex not obeying
DirectoryIndex index.html index.htm index.php
This should use html and then php for the directory index, and it does. But when I manually type index.php in the url, I'm redirected to index.html. Can this be avoided?
If I remove the .htaccess file…
![](../../users/profiles/1633749.webp)
jimmy
- 401
- 3
- 14
0
votes
1 answer
Can you change the DirectoryIndex of specific directories?
I know that you can use DirectoryIndex example.html in .htaccess, but what I need is to change the index for specific directories, like so:
DirectoryIndex /ex/index_file.html
or
DirectoryIndex /ex2/index_file2.html
Is there a way that you can…
![](../../users/profiles/1239221.webp)
Matt Talley
- 17
- 1
- 7
0
votes
1 answer
SEO - DirectoryIndex duplicate content
On a site I'm working on there will be about 7 different directories. I use DirectoryIndex in my .htaccess to point to index.php, so you can go to site.com/menu/ or site.com/menu/index.php and get the same content and so on for the other 6…
![](../../users/profiles/802469.webp)
Reed
- 13,861
- 6
- 61
- 102
-1
votes
0 answers
How to redirect default page in domain?
When going on "mysite.com", you'd get to the WordPress version of the website, however, I have now custom coding that I'd like to use. I don't know how to redirect the site to the code instead, and the new custom coding has used WP REST API directly…
![](../../users/profiles/15414557.webp)
nv4x0a7q
- 1
- 1
-1
votes
1 answer
Set multiple Index file for Apache server
I want to set multiple index files, but without forcing.
Let me explain better, if the user makes the following request:
mydomain.org -> mydomain.org/default.php
default.php
If the following request is…
![](../../users/profiles/11328160.webp)
Parmi93
- 89
- 6
-1
votes
1 answer
apache - DirectoryIndex - php page with arguments
I've got a single tikiwiki instance and several domain names. I want domain-1.com to have a homepage at domain-1.com/tiki-index.php?page-1. And then I want domain-2.com to have a homepage at domain-2.com/tiki-index.php?page-2. Both will internally…
![](../../users/profiles/7833941.webp)
Andrey
- 1
- 1
-1
votes
2 answers
Include the default DirectoryIndex
I have DirectoryIndex index.php and want to include './'; But I get failed to open stream: Is a directory
Of course I can include substr($someString, -1)==='/'?$someString.'index.php':$someString;, but is there an easier way? Maybe something in…
![](../../users/profiles/2371861.webp)
bjb568
- 9,826
- 11
- 45
- 66