Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 01-27-2013, 08:28 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would appreciate help on this. This is what I have in my htaccess



Quote:
RewriteEngine On

RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.talkjesus\.com
RewriteRule (.*) http://www.talkjesus.com/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modscp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|gall ery)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

## Expires
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 year"
ExpiresByType text/html "access plus 1 year"
ExpiresByType text/php "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
</ifModule>

## Compression
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>

## Rewrites
<ifmodule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# Media Library
ReWriteRule ^media/m(\d+).*/tags$ media.php?do=tags_edit&mid=$1 [QSA]
ReWriteRule ^media/m(\d+).*/edit$ media.php?do=details_edit&mid=$1 [QSA]
ReWriteRule ^media/m(\d+).*/report$ media.php?do=report&mid=$1 [QSA]
ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$2 [QSA]
ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$2 [QSA]
ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$1 [QSA]
ReWriteRule ^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]
ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]
ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$1 [QSA]
ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$1 [QSA]
ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$1 [QSA]
ReWriteRule ^media/results/(.*) media.php?do=results&query=$1 [QSA]
ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$1 [QSA]
ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$1 [QSA]
ReWriteRule ^media/browse.* media.php?do=browse [QSA]
ReWriteRule ^media/search.* media.php?do=search [QSA]
ReWriteRule ^media/random.* media.php?do=random [QSA]
ReWriteRule ^media/submit.* media.php?do=submit [QSA]
ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]
ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]
ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]
ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$1 [QSA]

# Media Library from Video Directory
RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
RewriteRule ^video\.php$ media.php?do=details&mid=%1
RewriteCond %{QUERY_STRING} viewcategory&categoryid=(\d+)
RewriteRule ^video\.php$ media.php?do=category&cid=%1
RewriteCond %{QUERY_STRING} viewuser&userid=(\d+)
RewriteRule ^video\.php$ media.php?do=user&uid=%1
RewriteCond %{QUERY_STRING} viewtag&tag=(.*)
RewriteRule ^video\.php$ media.php?do=tag&tid=%1
ReWriteRule ^video\.php$ media.php

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]

# MVC
RewriteRule ^(?.*?)(?:/|$))(.*|$)$ $1.php?r=$2 [QSA]
</ifmodule>

#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>

# BEGIN Browser Caching/Headers
<IfModule mod_mime.c>
AddType text/css .css
AddType text/richtext .rtf .rtx
AddType image/svg+xml .svg .svgz
AddType text/plain .txt
AddType text/xsd .xsd
AddType text/xsl .xsl
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
AddType image/bmp .bmp
AddType application/java .class
AddType video/divx .divx
AddType application/msword .doc .docx
AddType application/x-msdownload .exe
AddType image/gif .gif
AddType application/x-gzip .gz .gzip
AddType image/x-icon .ico
AddType image/jpeg .jpg .jpeg .jpe
AddType application/vnd.ms-access .mdb
AddType audio/midi .mid .midi
AddType video/quicktime .mov .qt
AddType audio/mpeg .mp3 .m4a
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg .mpe
AddType application/vnd.ms-project .mpp
AddType application/vnd.oasis.opendocument.database .odb
AddType application/vnd.oasis.opendocument.chart .odc
AddType application/vnd.oasis.opendocument.formula .odf
AddType application/vnd.oasis.opendocument.graphics .odg
AddType application/vnd.oasis.opendocument.presentation .odp
AddType application/vnd.oasis.opendocument.spreadsheet .ods
AddType application/vnd.oasis.opendocument.text .odt
AddType audio/ogg .ogg
AddType application/pdf .pdf
AddType image/png .png
AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
AddType audio/x-realaudio .ra .ram
AddType application/x-shockwave-flash .swf
AddType application/x-tar .tar
AddType image/tiff .tif .tiff
AddType audio/wav .wav
AddType audio/wma .wma
AddType application/vnd.ms-write .wri
AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
AddType application/zip .zip
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css A2628000
ExpiresByType text/richtext A3600
ExpiresByType image/svg+xml A3600
ExpiresByType text/plain A3600
ExpiresByType text/xsd A3600
ExpiresByType text/xsl A3600
ExpiresByType video/asf A2628000
ExpiresByType video/avi A2628000
ExpiresByType image/bmp A2628000
ExpiresByType application/java A2628000
ExpiresByType video/divx A2628000
ExpiresByType application/msword A2628000
ExpiresByType application/x-msdownload A2628000
ExpiresByType image/gif A2628000
ExpiresByType application/x-gzip A2628000
ExpiresByType image/x-icon A2628000
ExpiresByType image/jpeg A2628000
ExpiresByType application/vnd.ms-access A2628000
ExpiresByType audio/midi A2628000
ExpiresByType video/quicktime A2628000
ExpiresByType audio/mpeg A2628000
ExpiresByType video/mp4 A2628000
ExpiresByType video/mpeg A2628000
ExpiresByType application/vnd.ms-project A2628000
ExpiresByType application/vnd.oasis.opendocument.database A2628000
ExpiresByType application/vnd.oasis.opendocument.chart A2628000
ExpiresByType application/vnd.oasis.opendocument.formula A2628000
ExpiresByType application/vnd.oasis.opendocument.graphics A2628000
ExpiresByType application/vnd.oasis.opendocument.presentation A2628000
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A2628000
ExpiresByType application/vnd.oasis.opendocument.text A2628000
ExpiresByType audio/ogg A2628000
ExpiresByType application/pdf A2628000
ExpiresByType image/png A2628000
ExpiresByType application/vnd.ms-powerpoint A2628000
ExpiresByType audio/x-realaudio A2628000
ExpiresByType application/x-shockwave-flash A2628000
ExpiresByType application/x-tar A2628000
ExpiresByType image/tiff A2628000
ExpiresByType audio/wav A2628000
ExpiresByType audio/wma A2628000
ExpiresByType application/vnd.ms-write A2628000
ExpiresByType application/vnd.ms-excel A2628000
ExpiresByType application/zip A2628000
</IfModule>
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
</IfModule>
</IfModule>
<FilesMatch "\.(css|CSS|)$">
<IfModule mod_headers.c>
Header set Pragma "public"
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
</IfModule>
FileETag MTime Size
<IfModule mod_headers.c>
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
</IfModule>
</FilesMatch>
<FilesMatch "\.(rtf|rtx|svg|svgz|txt|xsd|xsl|RTF|RTX|SVG|SVGZ| TXT|XSD|XSL|)$">
<IfModule mod_headers.c>
Header set Pragma "public"
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
</IfModule>
FileETag MTime Size
<IfModule mod_headers.c>
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
</IfModule>
</FilesMatch>
<FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|doc x|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mo v|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf| odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ra m|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xl w|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|D OCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI| MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|OD F|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA| RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT| XLW|ZIP)$">
<IfModule mod_headers.c>
Header set Pragma "public"
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
</IfModule>
FileETag MTime Size
<IfModule mod_headers.c>
Header set X-Powered-By "Step by Step guide to speed up your VB4 (forum only)"
</IfModule>
</FilesMatch>
# End Browser Caching/Headers
Reply With Quote
  #12  
Old 01-28-2013, 04:01 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I can look it over for you. Here it is all fixed up for you. I noticed that you had some old caching rules thrown in there, I've taken the liberty to fix it up for you, copy this into your .htaccess & you should be set!


PHP Code:
# Author: Final Kaoss 
# Version 2.8
# Special Thanks Goes to W3Total Cache for much of the htaccess rules
# Downloaded from: https://vborg.vbsupport.ru/showthread.php?t=288429
RewriteEngine on

#Friendly Rewrite Rules Start

# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.talkjesus\.com
RewriteRule 
(.*) http://www.talkjesus.com/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L]

RewriteCond %{REQUEST_URI} !(admin/|mods/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|gallery)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

## Rewrites
<ifmodule mod_rewrite.c>
RewriteEngine on
Options 
+FollowSymlinks

RewriteCond 
%{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule 
^.*$ - [NC,L]

# Media Library
ReWriteRule ^media/m(\d+).*/tagsmedia.php?do=tags_edit&mid=$[QSA]
ReWriteRule ^media/m(\d+).*/editmedia.php?do=details_edit&mid=$[QSA]
ReWriteRule ^media/m(\d+).*/reportmedia.php?do=report&mid=$[QSA]
ReWriteRule ^media/m(\d+).*/c(\d+)$ media.php?do=comment_edit&cmt=$[QSA]
ReWriteRule ^media/m(\d+).*/p(\d+).*$ media.php?do=details&mid=$1&pid=$[QSA]
ReWriteRule ^media/m(\d+).* media.php?do=details&mid=$[QSA]
ReWriteRule ^media/p(\d+).*/editmedia.php?do=playlist_edit&pid=$[QSA]
ReWriteRule ^media/p(\d+).* media.php?do=playlist&pid=$[QSA]
ReWriteRule ^media/c(\d+).* media.php?do=category&cid=$[QSA]
ReWriteRule ^media/u(\d+).* media.php?do=user&uid=$[QSA]
ReWriteRule ^media/tag/(.*) media.php?do=tag&tid=$[QSA]
ReWriteRule ^media/results/(.*) media.php?do=results&query=$[QSA]
ReWriteRule ^media/advresults/(.*) media.php?do=advresults&query=$[QSA]
ReWriteRule ^media/letter/(.*) media.php?do=letter&query=$[QSA]
ReWriteRule ^media/browse.* media.php?do=browse [QSA]
ReWriteRule ^media/search.* media.php?do=search [QSA]
ReWriteRule ^media/random.* media.php?do=random [QSA]
ReWriteRule ^media/submit.* media.php?do=submit [QSA]
ReWriteRule ^media/tagcloud.* media.php?do=tagcloud [QSA]
ReWriteRule ^media/playlists.* media.php?do=playlists [QSA]
ReWriteRule ^media/pcreate.* media.php?do=playlists_create [QSA]
ReWriteRule ^media/pmine.* media.php?do=playlists_mine [QSA]
ReWriteRule ^media/favorites.* media.php?do=favorites [QSA]
ReWriteRule ^media/subscriptions.* media.php?do=subscriptions [QSA]
ReWriteRule ^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$[QSA]
ReWriteRule ^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$[QSA]
ReWriteRule ^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$[QSA]
ReWriteRule ^media/admin/(\w+).* media.php?do=admin_$[QSA]

# Media Library from Video Directory
RewriteCond %{QUERY_STRING} do=viewdetails&videoid=(\d+)
RewriteRule ^video\.phpmedia.php?do=details&mid=%1
RewriteCond 
%{QUERY_STRINGviewcategory&categoryid=(\d+)
RewriteRule ^video\.phpmedia.php?do=category&cid=%1
RewriteCond 
%{QUERY_STRINGviewuser&userid=(\d+)
RewriteRule ^video\.phpmedia.php?do=user&uid=%1
RewriteCond 
%{QUERY_STRINGviewtag&tag=(.*)
RewriteRule ^video\.phpmedia.php?do=tag&tid=%1
ReWriteRule 
^video\.phpmedia.php

# Forum
RewriteRule ^threads/.* showthread.php [QSA]
RewriteRule ^forums/.* forumdisplay.php [QSA]
RewriteRule ^members/.* member.php [QSA]
RewriteRule ^blogs/.* blog.php [QSA]
ReWriteRule ^entries/.* entry.php [QSA]

RewriteCond %{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule 
^.*$ - [NC,L]

# MVC
RewriteRule ^(?.*?)(?:/|$))(.*|$)$ $1.php?r=$[QSA]
</
ifmodule>



#Friendly Rewrite Rules End

#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# BEGIN Browser Caching/Headers
<IfModule mod_mime.c>
        
AddType text/css .css
        AddType text
/richtext .rtf .rtx
        AddType image
/svg+xml .svg .svgz
        AddType text
/plain .txt
        AddType text
/xsd .xsd
        AddType text
/xsl .xsl
        AddType video
/asf .asf .asx .wax .wmv .wmx
        AddType video
/avi .avi
        AddType image
/bmp .bmp
        AddType application
/java .class
        
AddType video/divx .divx
        AddType application
/msword .doc .docx
        AddType application
/x-msdownload .exe
        AddType image
/gif .gif
        AddType application
/x-gzip .gz .gzip
        AddType image
/x-icon .ico
        AddType image
/jpeg .jpg .jpeg .jpe
        AddType application
/vnd.ms-access .mdb
        AddType audio
/midi .mid .midi
        AddType video
/quicktime .mov .qt
        AddType audio
/mpeg .mp3 .m4a
        AddType video
/mp4 .mp4 .m4v
        AddType video
/mpeg .mpeg .mpg .mpe
        AddType application
/vnd.ms-project .mpp
        AddType application
/vnd.oasis.opendocument.database .odb
        AddType application
/vnd.oasis.opendocument.chart .odc
        AddType application
/vnd.oasis.opendocument.formula .odf
        AddType application
/vnd.oasis.opendocument.graphics .odg
        AddType application
/vnd.oasis.opendocument.presentation .odp
        AddType application
/vnd.oasis.opendocument.spreadsheet .ods
        AddType application
/vnd.oasis.opendocument.text .odt
        AddType audio
/ogg .ogg
        AddType application
/pdf .pdf
        AddType image
/png .png
        AddType application
/vnd.ms-powerpoint .pot .pps .ppt .pptx
        AddType audio
/x-realaudio .ra .ram
        AddType application
/x-shockwave-flash .swf
        AddType application
/x-tar .tar
        AddType image
/tiff .tif .tiff
        AddType audio
/wav .wav
        AddType audio
/wma .wma
        AddType application
/vnd.ms-write .wri
        AddType application
/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
        AddType application
/zip .zip
</IfModule>
<
IfModule mod_expires.c>
        
ExpiresActive On
        ExpiresByType text
/css A2628000
        ExpiresByType text
/richtext A3600
        ExpiresByType image
/svg+xml A3600
        ExpiresByType text
/plain A3600
        ExpiresByType text
/xsd A3600
        ExpiresByType text
/xsl A3600
        ExpiresByType video
/asf A2628000
        ExpiresByType video
/avi A2628000
        ExpiresByType image
/bmp A2628000
        ExpiresByType application
/java A2628000
        ExpiresByType video
/divx A2628000
        ExpiresByType application
/msword A2628000
        ExpiresByType application
/x-msdownload A2628000
        ExpiresByType image
/gif A2628000
        ExpiresByType application
/x-gzip A2628000
        ExpiresByType image
/x-icon A2628000
        ExpiresByType image
/jpeg A2628000
        ExpiresByType application
/vnd.ms-access A2628000
        ExpiresByType audio
/midi A2628000
        ExpiresByType video
/quicktime A2628000
        ExpiresByType audio
/mpeg A2628000
        ExpiresByType video
/mp4 A2628000
        ExpiresByType video
/mpeg A2628000
        ExpiresByType application
/vnd.ms-project A2628000
        ExpiresByType application
/vnd.oasis.opendocument.database A2628000
        ExpiresByType application
/vnd.oasis.opendocument.chart A2628000
        ExpiresByType application
/vnd.oasis.opendocument.formula A2628000
        ExpiresByType application
/vnd.oasis.opendocument.graphics A2628000
        ExpiresByType application
/vnd.oasis.opendocument.presentation A2628000
        ExpiresByType application
/vnd.oasis.opendocument.spreadsheet A2628000
        ExpiresByType application
/vnd.oasis.opendocument.text A2628000
        ExpiresByType audio
/ogg A2628000
        ExpiresByType application
/pdf A2628000
        ExpiresByType image
/png A2628000
        ExpiresByType application
/vnd.ms-powerpoint A2628000
        ExpiresByType audio
/x-realaudio A2628000
        ExpiresByType application
/x-shockwave-flash A2628000
        ExpiresByType application
/x-tar A2628000
        ExpiresByType image
/tiff A2628000
        ExpiresByType audio
/wav A2628000
        ExpiresByType audio
/wma A2628000
        ExpiresByType application
/vnd.ms-write A2628000
        ExpiresByType application
/vnd.ms-excel A2628000
        ExpiresByType application
/zip A2628000
</IfModule>
<
IfModule mod_deflate.c>
        <
IfModule mod_setenvif.c>
                
BrowserMatch ^Mozilla/4 gzip-only-text/html
                BrowserMatch 
^Mozilla/4.0[678no-gzip
                BrowserMatch bMSIE 
!no-gzip !gzip-only-text/html
                BrowserMatch bMSI
[E] !no-gzip !gzip-only-text/html
        
</IfModule>
        <
IfModule mod_headers.c>
                
Header append Vary User-Agent env=!dont-vary
        
</IfModule>
        <
IfModule mod_filter.c>
                
AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
        
</IfModule>
</
IfModule>
<
FilesMatch "\.(css|CSS|)$">
        <
IfModule mod_headers.c>
                
Header set Pragma "public"
                
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
        
</IfModule>
        
FileETag MTime Size
        
<IfModule mod_headers.c>
                 
Header set X-Powered-By "Step by Step guide to speed up your VB5"
        
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(rtf|rtx|svg|svgz|txt|xsd|xsl|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|)$">
        <
IfModule mod_headers.c>
                
Header set Pragma "public"
                
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
        
</IfModule>
        
FileETag MTime Size
        
<IfModule mod_headers.c>
                 
Header set X-Powered-By "Step by Step guide to speed up your VB5"
        
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
        <
IfModule mod_headers.c>
                
Header set Pragma "public"
                
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
        
</IfModule>
        
FileETag MTime Size
        
<IfModule mod_headers.c>
                 
Header set X-Powered-By "Step by Step guide to speed up your VB5"
        
</IfModule>
</
FilesMatch>
# End Browser Caching/Headers 
Also be aware that vbseo is known to contribute to very high server loads.. As far as server load goes that is as far as I can help you. However if you still want to try to finish off that pagespeed score then I recommend trying google page speed service. They require you to sign up... I got an email from them in a few seconds verifying my request.

I went from a score of around 80-82 up to 90-92 when I switched to them from using cloudflare.
http://www.webpagetest.org/result/130128_JS_45C/

Here are the settings I use with them. *If "use recommended settings" is ticked, that means that I didn't change any option.
For "Optimize Javascript", all 3 options are ticked.

Reply With Quote
  #13  
Old 01-28-2013, 08:45 AM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only problem with googles pagespeed service (when I used it) is that it really fekked up images making them very lossy and also the java scripts..food for thought.
Reply With Quote
  #14  
Old 01-28-2013, 12:51 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes by default google does enable lossy compression. And in general it usually means a loss in quality when reducing the image. But lossless compression can reduce the file size without sacrificing any noticable image quality.

Also some mods aren't friendly when it comes to combining, deffering or compressing JS. I recommend playing around with the settings until you find out which works just right for because everytime you change the settings the pagespeed bot will recrawl your site, looking again for js resources and making the applied changes.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07894 seconds
  • Memory Usage 2,368KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete