SlimEdge/tydi3/master/.htaccess - Htaccess File

SlimEdge/tydi3/master/.htaccess

# Turn on Rewrite Engine
RewriteEngine on

# Inherit parent rules
RewriteOptions inherit

# Disable Index Listing
Options All -Indexes

# Enable symbolic links
Options +FollowSymLinks

# Pass the default character set
AddDefaultCharset utf-8

# Preserve Bandwidth for PHP enabled servers
<ifmodule mod_php4.c>
  php_value zlib.output_compression 16386
</ifmodule>

# Defining Basepath
#RewriteBase /path/

# Prevent Looping
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite Rules
#RewriteRule ^(.*)$ /index.php?default=$1 [NC,QSA,L]

RewriteRule ^api$|^api/(.*)$ /index.php?api=$1 [NC,QSA,L]
RewriteRule ^link$|^link/(.*)$ /index.php?link=$1 [NC,QSA,L]
RewriteRule ^page$|^page/(.*)$ /index.php?page=$1 [NC,QSA,L]
RewriteRule ^download/(.*)$ /index.php?act=download&file=$1 [NC,QSA,L]
RewriteRule ^redirect/(.*)$ /index.php?act=redirect&location=$1 [NC,QSA,L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache