guillaume-sainthillier/malp/master/admin/.htaccess - Htaccess File

guillaume-sainthillier/malp/master/admin/.htaccess

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

<IfModule mod_rewrite.c>
  RewriteEngine on

  RewriteRule  ^([^.]+).(html|htm)$  ./$1.php  [L]  
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^.]+).(.+)$ ../errors/error_404.php?page=%{REQUEST_URI} [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^/]+)/?$ ./$1.php [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^/]+)/(.+)$ ./$1.php?params=$2 [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ ../errors/error_404.php?page=%{REQUEST_URI} [L]
  
  
</IfModule>

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache