Questions tagged [mod-dir]

Apache's directory module

Provides for "trailing slash" redirects and serving directory index files

Directives provided

  • DirectoryCheckHandler
  • DirectoryIndex
  • DirectoryIndexRedirect
  • DirectorySlash
  • FallbackResource

Useful links

  1. Apache docs page: https://httpd.apache.org/docs/current/en/mod/mod_dir.html
3 questions
4
votes
0 answers

Site not detecting index

I'm working on Ubuntu 14.04.2 Apache 2.4.7 I have a Virtual host set up to serve files from /var/www/dev and the config file looks like this for dev.conf: ServerAdmin ubuntu@12.234.567.89 DocumentRoot /var/www/dev …
contool
  • 1,034
  • 3
  • 18
  • 29
3
votes
0 answers

FallbackResource doesn't rewrite php files

I'm just using the following .htaccess config. But when I try to access a non-existent .php file, eg. xyz.php, the server returns a 404 instead of rewriting to index.php. What am I missing? RewriteEngine on FallbackResource /index.php
Arya Same
  • 397
  • 1
  • 3
  • 12
1
vote
1 answer

Redirect from React Page to WordPress Instance

I have a React app on https://example.com/ and a WordPress blog inside as a sub directory: https://example.com/blog/ The issue: While browsing https://example.com/blog, I want it to get redirected (301) at https://example.com/blog/ But currently it…
malavpw
  • 11
  • 3