• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

Need Help - Luvin Forums

kyle

New member
Okay, this site is probably going to be a worst case scenario of what not to do or what should not have been done in the past. We had someone who said he was an expert in optimizing images and stuff supposedly do his thing and now checking things out I really think we got ripped off. I have tried to do the changes in Ozzy's thread - speed up your site via .htaccess and get an internal server error when trying the last steps. So will put the .htaccess files back to where they were and go from there.

This is the latest test with what is in the .htaccess files.

View attachment 436

This is the public/html .htaccess:

PHP:
Options +FollowSymLinks 
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^luvinforums\.com
RewriteRule (.*) http://luvinforums.com/$1 [R=301,L]

This is what the guy has in the /forum .htaccess:

PHP:
<IfModule mod_rewrite.c>
RewriteEngine on

# If vbulletin is in a subdirectory, add it here
RewriteBase /forum/

# Retrieve gamedata requests and send to new dbtech locations
RewriteRule ^arcade/gamedata/(.*) dbtech/vbarcade/media/$1 [L]

# Retrieve crossdomain requests and send to new dbtech location
RewriteRule ^crossdomain\.xml dbtech/vbarcade/crossdomain.xml [L]

# Send hardcoded pnf+ipa scores to arcade instead
RewriteCond %{QUERY_STRING} func=storeScore [OR]
RewriteCond %{QUERY_STRING} autocom=arcade [OR]
RewriteCond %{QUERY_STRING} act=Arcade
RewriteRule .* arcade.php [L,QSA]

# Reroute v3arcade liveinstaller
RewriteCond %{QUERY_STRING} do=liveinstall
RewriteCond %{REQUEST_URI} v3arcade_admin\.php

# If you renamed your admincp directory, change it here
RewriteRule .* %{DOCUMENT_ROOT}/admincp/arcade_admin.php?%{QUERY_STRING}&do=review&import=browse&system=v3a [L,R=301]
</IfModule>

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

#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 application/x-javascript .js
    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 A31536000
    ExpiresByType application/x-javascript A31536000
    ExpiresByType text/richtext A3600
    ExpiresByType image/svg+xml A3600
    ExpiresByType text/plain A3600
    ExpiresByType text/xsd A3600
    ExpiresByType text/xsl A3600
    ExpiresByType video/asf A31536000
    ExpiresByType video/avi A31536000
    ExpiresByType image/bmp A31536000
    ExpiresByType application/java A31536000
    ExpiresByType video/divx A31536000
    ExpiresByType application/msword A31536000
    ExpiresByType application/x-msdownload A31536000
    ExpiresByType image/gif A31536000
    ExpiresByType application/x-gzip A31536000
    ExpiresByType image/x-icon A31536000
    ExpiresByType image/jpeg A31536000
    ExpiresByType application/vnd.ms-access A31536000
    ExpiresByType audio/midi A31536000
    ExpiresByType video/quicktime A31536000
    ExpiresByType audio/mpeg A31536000
    ExpiresByType video/mp4 A31536000
    ExpiresByType video/mpeg A31536000
    ExpiresByType application/vnd.ms-project A31536000
    ExpiresByType application/vnd.oasis.opendocument.database A31536000
    ExpiresByType application/vnd.oasis.opendocument.chart A31536000
    ExpiresByType application/vnd.oasis.opendocument.formula A31536000
    ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
    ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
    ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
    ExpiresByType application/vnd.oasis.opendocument.text A31536000
    ExpiresByType audio/ogg A31536000
    ExpiresByType application/pdf A31536000
    ExpiresByType image/png A31536000
    ExpiresByType application/vnd.ms-powerpoint A31536000
    ExpiresByType audio/x-realaudio A31536000
    ExpiresByType application/x-shockwave-flash A31536000
    ExpiresByType application/x-tar A31536000
    ExpiresByType image/tiff A31536000
    ExpiresByType audio/wav A31536000
    ExpiresByType audio/wma A31536000
    ExpiresByType application/vnd.ms-write A31536000
    ExpiresByType application/vnd.ms-excel A31536000
    ExpiresByType application/zip A31536000
</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|js|CSS|JS)$">
    <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|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 VB4 (forum only)"
    </IfModule>
</FilesMatch>
# End Browser Caching/Headers

<ifModule mod_php4.c>
 php_value zlib.output_compression 16386
</ifModule>

I know there is a ton of images that have to be compressed but want to get the htaccess files set up properly first and then will work on the images, other stuff, later on. All suggestions are welcome at this point. Glad I followed the link on vb.org over to your site, looks good.

Thanks in advance! Kyle
 
Your chatbox is killing your load time - it is causing nearly 500 requests all by itself! Turn it off for a bit while testing, so we can get a decent full pageload on the test browsers. You should strongly consider making it visible only to those who are logged in anyway.

700 server requests and 5 MEGABYTE page load are the big problems you must solve first, before we start dealing with the failing grades for first byte time and keep-alive.

Ironically you are getting passing grades for image compression and progressive JPEGS. I seldom ever see that and that's the last area we need to address to improve slightly after fixing the bloat and the massive amount of calls, first.

I can't get a useful full test on your site until the chatbox is disabled or at least removed from public/not logged in view. I've made four attempts and getting only partially completed tests.
 
Sorry about that - chat box has been removed from unregistered view. Its one battle I have had with my partner, she wants it showing to unregistered and I don't. Now have ammunition for the next time we battle about this.
 
Sorry about that - chat box has been removed from unregistered view. Its one battle I have had with my partner, she wants it showing to unregistered and I don't. Now have ammunition for the next time we battle about this.
The battle should be ONLY about - does the chat box increase registrations and if it does, is it worth the terrible load time which is proven to drive people away. Speed is what cuts it on the web, study after study has proven that if a site is slow or hangs, people just hit the X button and leave.

Blocking the chat box from public view removed a whopping 558 server requests, over 4 MEGABYTES of data and sped up this pageload significantly.. Having it there for public view is only about vanity - it accomplishes little else and absolutely, demonstrably, kills performance.

Now we can get to work. You still have 161 requests for over 1 megabyte of pageload. The page is only slightly fat - I like to see them come in between 600-800kb.

WebPagetest Test Result - Dulles : luvinforums.com/forum - 06/03/14 16:57:47

You can see your grades for image compression are fine, and also for caching you're grading well. But as you can see from the waterfall view, the shoutbox JS still loads, and JS is 48% of your total page load. You also have fully 2% of total pageload devoted to custom font file(s). These really are for vanity only, since most browsers ignore the custom fonts, don't display them, but they do download anyway.

This GIF:
HTML:
http://luvinforums.com/forum/banners/lpradio.gif
Is 100kb all by itself. Do you really need it? I suggest turning it into a progressive JPEG, taking 90kb off of it. You lose the animation doing this, but then again - do you really need it. You are spending 90kb every page load, just to see a little motion.

Ok, addressing the F grade for "Keep Alive" enabled. It is safe to ignore this, as it depends on your workload: If you have a lot of clients requesting several resources during a certain timeframe is is usually better to have keepalive turned on to get rid of the overhead for establishing TCP connections. But if your clients request only a few resources it is better to have keep-alive turned off to free workers immediately. Rule of Thumb:

Keep-Alive off for backend servers
Keep-Alive off for frontend servers
Keep-Alive on for static content servers

Regarding the F grade for first byte time - vBulletin 4 has a bloated database right out of the box, and performs marginally only for FBT. You are failing this test mainly because the "target" first byte time of 123 milliseconds seems unattainable. That's a figure WPT calculates based on location of the test, connection, how much it "thinks" the handshake should last. The target isn't a real world figure and your FBT will vary with load conditions on the server, your own traffic, and so on. But I HAVE found it to be reduced significantly when you reduce the size of the page.

Reducing the size of the page is by far the number one way to increase performance for your site, at this point and in general.

Right now you're not looking too shabby. You have fewer problems than most sites I see. But if you want performance, the shoutbox simply has to go, for public view. That's not even debatable IMO.
 
Back
Top