Forum Moderators: phranque
# Rewrite pages through index.php via ?gdUrl
RewriteCond %{REQUEST_URI} !^/test/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?gdUrl=$1 [QSA,L]
# Rewrite requests for all URL-paths to "/index.php? with URL-path passed in "gdUrl" query
# variable, unless the requested URL-path has already been rewritten to the script, resolves
# to the /test subdrectory, or resolves to an existing file or directory.
RewriteCond $1 !^index\.php$
RewriteCond $1 !^test/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?gdUrl=$1 [QSA,L]
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
# CACHE CONTROL
# 480 weeks
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|jgz)$">
Header set Cache-Control "max-age=290304000, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</FilesMatch>
# 2 HOURS
<FilesMatch "\.(html|htm|php)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
# DISABLE E TAGS
<ifModule mod_headers.c>
Header unset ETag
</ifModule>
FileETag None
# COMPRESS
# DEFLATE
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# REDIRECTS
RewriteEngine On
# Rewrite pages through index.php via ?gdUrl
RewriteCond %1 !^index\.php$
RewriteCond %1 !^converge/
RewriteCond %1 !^converge_local/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?gdUrl=$1 [QSA,L]
[Wed Jun 23 00:43:39 2010] [error] [client 70.79.50.44] SoftException in Application.cpp:601: Directory "/home1/globexde/public_html/converge_local" is writeable by group [Wed Jun 23 00:43:39 2010] [error] [client 70.79.50.44] Premature end of script headers: index.php
RewriteCond $1 !^converge_local/ RewriteCond %{REQUEST_URI} !^/converge_local/ Options -MultiViews AcceptPathInfo off # REDIRECTS
RewriteEngine On
# Rewrite pages through index.php via ?gdUrl
RewriteCond $1 !^index\.php$
RewriteCond $1 !^converge_local/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?gdUrl=$1 [QSA,L]
Options -MultiViews
AcceptPathInfo off