# Example Apache ReWrite
# ------------------------------------------------------
# .htaccess file for Apache's Rewrite Engine.
# Custom Friendly URL ReWrite for Apache.
#
# Place the website's root directory.
# (Such as /httpdocs/)
#
# Support, Docs and Download are here:
# http://httpd.apache.org/
# http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
#
# The end result should be:
# ./index.php?query=/original-url
#
# OR
#
# ./index.php?query=/original-url&other=123
# (Maintaining any additional $_GET queries.)
#
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-s
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?query=/$1 [L,QSA]