Htaccess File

OpenSceneryX/Website/master/.htaccess

DEFLATE, REQUEST_FILENAME
# Start of composer protection
<FilesMatch "^composer|^.(.*)$">
  Deny From All
</FilesMatch>
# End of composer protection

# BEGIN W3TC Browser Cache
<IfModule mod_deflate.c>
    <IfModule mod_headers.c>
        Header append Vary User-Agent env=!dont-vary
    </IfModule>
        AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
        # DEFLATE by extension
        AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
</IfModule>
# END W3TC Browser Cache

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# Remove .html if found
RewriteRule ^(.*)/(.*?).html$ /$1 [L,R=301] 

# Send library catalogue requests to WordPress
RewriteCond %{REQUEST_FILENAME} /(facades|forests|lines|objects|polygons)/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [L]

# Standard WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

<IfModule mod_alias.c>
Redirect permanent /2010/10/opensceneryx-and-x-plane®-10/ http://www.opensceneryx.com/2010/10/opensceneryx-and-x-plane-10/
</IfModule>
Exit mobile version