Questions tagged [directoryindex]

70 questions
1
vote
2 answers

Mod Rewrite code with out changing the url in address bar

I When I call http://www.mysite.in/abc/xyz it should show up http://www.mysite.in/abc/xyz/index.php but the url shout not change in address bar and it should work with out "/" in the address. Please any one help me with .htaccess code for apache…
1
vote
0 answers

How to convert Dynamic URL to Static URL - So that the PHP Sends an URL to browser and .htaccess converts it and sends its back to the PHP

I am new to .htaccess, I tried googling every questions I had on .htaccess to understand. I found few tutorials, but I am couldnot understand anything. First Question: What is the difference between input url and output url concerned to…
Yellow and Red
  • 635
  • 7
  • 29
1
vote
2 answers

How to DirectoryIndex a controler route?

With my current configuration every time I typed something.com it shows the app_dev.php which is right because of my current rewrite rule. But what I want is if a user typed www.something.com it will automatically direct to www.something.com/home…
Teffi
  • 2,264
  • 3
  • 18
  • 38
1
vote
1 answer

Application of DirectoryIndex to an Alias in Apache

How does one apply DirectoryIndex to an Alias in Apache without resulting in error 403? This results in response header 200: http://localhost/ Which presents http://localhost/index.html ServerAdmin webmaster@localhost …
Sn3akyP3t3
  • 645
  • 3
  • 9
  • 21
1
vote
1 answer

typing DirectoryIndex into .htaccess and it doesn't work?

This is so frustrating. My root directory is at home/websitename/websitename/ and my httpd.conf has nothing in it! My .htaccess is in the same directory as the index.php is supposed to be and all I'm typing into .htaccess (and FTP identifies this as…
bnynn
  • 501
  • 1
  • 6
  • 20
0
votes
2 answers

Redirect Users based on IP Address | Apache / htaccess

I'd like to redirect users to an /index/ area of the site if they don't have my IP address. How do I do this? Thank you.
michaelmcgurk
  • 5,867
  • 22
  • 75
  • 167
0
votes
1 answer

DirectoryIndex not assigning new default directory

I just got finished changing my entirely static HTML website into a PHP one to allow editing ease. I used a 301 RedirectMatch in my .htaccess file so direct all the .html pages to the new .php ones. However, when I did this, it decided to change my…
Mark Lyons
  • 1,218
  • 4
  • 20
  • 51
0
votes
2 answers

Localhost - PHP Include Not Showing Errors

I've just installed the latest version of Appserv ( 9.3.0 ), which includes: Apache 2.4.41 PHP 7.3.10 MySQL 8.0.17 phpMyAdmin 4.9.1 I'm using Localhost as my root directory and trying to reuse old files to build a new website, but I'm noticing a…
W Six
  • 3
  • 2
0
votes
2 answers

Why is GoogleBot interested in [index.php] when my root redirects to [/en/home]?

for the past months, googleBot has been hitting a file that does not exist anymore on my site [index.php] as all the routing to the proper home pages in the proper languages is handled via apache rewrite rules in the htaccess. Ans to, I commented…
Sam
  • 15,156
  • 23
  • 85
  • 134
0
votes
2 answers

What does "Directory Index forbidden by rule" mean?

What could the following line mean? [Mon Feb 21 20:52:13 2011] [error] [client 66.249.71.150] Directory index forbidden by rule: /var/www/vhosts/website.com/httpdocs/ I have no index.php in the root, since my index is home.php, website root file…
Sam
  • 15,156
  • 23
  • 85
  • 134
0
votes
1 answer

How to Setup My Own Directory Index Rules in htaccess to Allow/Block Special Folder Access?

Imagine I have a folder, inside it are a bunch of photos from my latest nude colony camp visit, and the extravagant shots in it and all, that I dont want just everyone to have access to when typing the main folder e.g. www.website.org/photos/ While…
Sam
  • 15,156
  • 23
  • 85
  • 134
0
votes
2 answers

.htaccess start page with mod_rewrite

When I open https://my-web-site.com/ ( my start page ) I would like to execute https://my-web-site.com/index.html rather https://my-web-site.com/app.php rewrite by apache. I want to keep my rewrite rules and just bypass index.html. My file…
bingo
  • 51
  • 1
  • 7
0
votes
1 answer

How to prevent my users from explicitly surfing to /.../index.php?

How do I configure Apache to prevent my users from explicitly surfing to http://myurl/somepath/index.php ' Having index.php attached to the end of the URL looks ugly, to say the least.
pyon
  • 15,961
  • 14
  • 83
  • 144
0
votes
2 answers

.htaccess - DirectoryIndex for one folder

I have a symfony backend installed on my server and in the symfony/web folder I have created a new folder "app" and there is an index.html. If I call https://example.com/app/ I'm getting 404 and with https://example.com/app/index.html it is working.…
Nono
  • 863
  • 3
  • 18
  • 41
0
votes
1 answer

Where Is Apache's DirectoryIndex file: index.py

I feel like this question is pretty easy but I think I'm missing something. I want to understand more about Apache's (?site-enabled, virtual host, directory?). In my Directory I have DirectoryIndex /cgi-bin/index.py. Where is this file located?
alexs973
  • 153
  • 1
  • 14