irtusb/sacft_v0/master/.htaccess - Htaccess File

irtusb/sacft_v0/master/.htaccess

#SetEnv APPLICATION_ENV development
Options -Indexes
ErrorDocument 404 /app/view/404.html
ErrorDocument 500 /app/view/500.html

<IfModule rewrite_module>
  #activar el rewrite
  RewriteEngine on
  
  ###
  # from /anything to /dispatcher.php?controller=/$1
  # except request to a files, or below directories:
  
  RewriteCond $1 !^(tool|web|files)
  RewriteCond %{REQUEST_URI} !((.*).(.*))$
  RewriteRule ^(.*)$ dispatcher.php?route=/$1 [NC,L]
  
  ###
  # for relative paths
  # from img/... goto web/img/... OR css/... goto web/css/... OR js/... web/goto js/...
  # or: you can use: RewriteRule ^img/(.*) web/img/$2 [L]
  
  RewriteRule ^(img|css|js)/(.*) web/$1/$2 [L,QSA]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_URI

Comments

Apache