gluon-web-remote

Web remote Administration for big size of gluon routers
git clone git://archive.git.mtrnord.blog/MTRNord/gluon-web-remote.git
Log | Files | Refs | README

.htaccess (1014B)


      1 # Necessary to prevent problems when using a controller named "index" and having a root index.php
      2 # more here: http://httpd.apache.org/docs/2.2/content-negotiation.html
      3 Options -MultiViews
      4 
      5 # Activates URL rewriting (like myproject.com/controller/action/1/2/3)
      6 RewriteEngine On
      7 
      8 # Prevent people from looking directly into folders
      9 Options -Indexes
     10 
     11 # If the following conditions are true, then rewrite the URL:
     12 # If the requested filename is not a directory,
     13 RewriteCond %{REQUEST_FILENAME} !-d
     14 # and if the requested filename is not a regular file that exists,
     15 RewriteCond %{REQUEST_FILENAME} !-f
     16 # and if the requested filename is not a symbolic link,
     17 RewriteCond %{REQUEST_FILENAME} !-l
     18 # then rewrite the URL in the following way:
     19 # Take the whole request filename and provide it as the value of a
     20 # "url" query parameter to index.php. Append any query string from
     21 # the original URL as further query parameters (QSA), and stop
     22 # processing this .htaccess file (L).
     23 RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]