rickyfeng/wenda/master/.htaccess - Htaccess File

rickyfeng/wenda/master/.htaccess

<IfModule mod_php5.c>
    # adjust memory limit
    php_value memory_limit 128M
    php_value max_execution_time 18000

    # disable magic quotes for php request vars
    php_flag magic_quotes_gpc off

    # disable automatic session start
    php_flag session.auto_start off

    # enable resulting html compression
    php_flag zlib.output_compression on

    # disable user agent verification to not break multiple image upload
    php_flag suhosin.session.cryptua off
    
    # turn off compatibility with PHP4 when dealing with objects
    php_flag zend.ze1_compatibility_mode Off
</IfModule>

<IfModule expires_module>
    ExpiresActive On
    ExpiresByType text/css A2592000
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType application/javascript A2592000
    ExpiresByType text/html M604800
</IfModule>

<IfModule mod_deflate.c>
    # Insert filter on all content
    SetOutputFilter DEFLATE
    
    # Insert filter on selected content types only
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
    
    # Netscape 4.x has some problems...
    BrowserMatch ^Mozilla/4.0[678] no-gzip

    # MSIE masquerades as Netscape, but it is fine
    BrowserMatch ^MSIE [1-5] no-gzip

    # Don't compress images
    SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ /index.php [NC,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, no-gzip, REQUEST_FILENAME, REQUEST_URI

Comments

Apache