wplib/wplib-docs/master/www/.htaccess - Htaccess File

wplib/wplib-docs/master/www/.htaccess

#####################################
# Browser cache for static files
#####################################
<FilesMatch ".(js|css|jpg|gif|png|jpeg)$">
    <IfModule mod_expires.c>
        ExpiresActive on
        ExpiresDefault "access plus 7 days"
    </IfModule>
    FileETag MTime Size
</FilesMatch>

#####################################
# Redirect stuff
#####################################
<IfModule mod_rewrite.c>
    # Enable URL rewriting
    RewriteEngine On

    # Added for wplib.org to redirect www.wplib.org to non-www.

    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.wplib.org [NC]
    RewriteRule ^(.*) http://wplib.org/$1 [L,R=301]

    # Change this path, if you have installed PhileCMS in a subdirectory of the website root.
    # RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* index.php [L]

</IfModule>

#####################################
# directory listings are disabled
#####################################
Options -Indexes

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, static

Comments

Apache