vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - YSLOW 1.0.3 (Make Your Forum Faster) (https://vborg.vbsupport.ru/showthread.php?t=178286)

hydn 12-28-2008 06:11 AM

This works on my windows server running IIS6 and custom mod rewrite:

See before an after:

I went from an F rating on yslow FF plugin to B's, C's.

Thanks somuch :up:

hydn 12-28-2008 06:32 AM

The only setting that didn't work default is
Quote:

FileETag none
Had to configure manually in IIS with an alternative method

nikosb 12-28-2008 07:59 AM

good..thank you !

madmax1228 01-06-2009 06:16 PM

reinstalled after upgrade

madmax1228 01-06-2009 09:17 PM

Uninstaled. My forum went haywire right after installing. I have to do a little research on what I did as so many folks are not having issues with this hack.....must be me.

redlabour 01-21-2009 08:07 PM

Works great together with vB Optimise!

TheGreatTK 01-25-2009 02:56 AM

Wow! Makes a big difference.. all those KB shaved off will definitely help us out later down the road.

Installed :)

Zia 01-25-2009 06:32 AM

will work with vb 3.8.0?

we r on apache/Vbseo3.2.0/xcache

KevinL 01-25-2009 06:37 AM

Quote:

Originally Posted by Zia (Post 1724002)
will work with vb 3.8.0?

we r on apache/Vbseo3.2.0/xcache

Yeah not a problem. Just search over at the vbseo site. There is a small fix for this. Search for YSLOW there and you'll find the fix from one f the staff members in a thread.

EDIT here you go ;) http://www.vbseo.com/f10/request-int...tml#post154368

Zia 01-29-2009 01:18 AM

just curious..whats the diff. in between YSLOW & Minify Css

Brandon Sheley 01-29-2009 01:44 AM

interesting mod, will check it out

earthome 05-23-2009 10:00 AM

Good

SBlueman 05-23-2009 11:07 AM

I have two .htaccess files.....one in the root and one in the forum:

Root:
Quote:

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

####Charset
#AddDefaultCharset Off

####Gzip
#<IfModule mod_rewrite.c>
#RewriteCond %{REQUEST_FILENAME} -f
#RewriteRule ^(.*)(js|css)$ redir.php?file=$1$2&type=$2 [L]
#</IfModule>

####ETags
#FileETag None

####Expires
#<IfModule mod_expires.c>
#ExpiresActive On
#ExpiresByType image/gif A2592000
#ExpiresByType image/jpeg A2592000
#ExpiresByType image/png A2592000
#ExpiresByType application/x-shockwave-flash A2592000
#ExpiresByType text/css A2592000
#ExpiresByType application/x-javascript A2592000
#</IfModule>

#ErrorDocument 404 /404.php
Forum:
Quote:

# 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 /

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

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteRule ^rss/([0-9a-zA-Z_\-]+)/ zointstags_external.php?do=tag&tag=$1 [L]

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

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

<IfModule mod_security.c>


</IfModule>
Am I supposed to have two different files?

dancue 06-09-2009 10:16 PM

Quick question. Am I uploading the php file to the forum root, or uploading the yslow folder with the php file within the forum root?

RTMdotORG 06-14-2009 06:13 AM

works good but shows theres errors in the bottom left corner of IE....

TheInsaneManiac 08-19-2009 09:30 AM

About how much more strain would this put on the server, because I got DDoSed and they targeted the redir.php and kicked me out of the park with a whopping 65.72 load. I'm not suppose to go over 1.0 and I got suspended for a day until we could isolate the problem. I'm not saying that it causes a huge load, as any file being targeted with that many people could send the server flying, but I would like to know about how many extra queries it could add?

Jaxel 08-21-2009 07:53 AM

Been using this mod for a year, and it has been GREAT!

However, after EVO2K9, the traffic on my website has doubled. I found performance starting to straggle. So I disabled this mod and now things seem to be running smoothly. If you have a high traffic forum, you may start having issues with this mod.

Bandwidth isn't as much of an issue for me, as I am more worried about performance; so I don't have a need for this mod anymore.

MikeWarner 01-03-2010 10:44 AM

Just tried this in vB4.0 and it seems to work fine. :)

bart6767 01-04-2010 07:41 PM

This works well on vB4.0

zombietom 01-10-2010 05:18 PM

Quote:

Originally Posted by christian8a (Post 1567737)
tested it and seems to help a bit.
Now how do we uninstall it if the .htaccess file dissapears?

the only file I see is the other one redir.php , but the other one is gone :confused:

Same here..it seems to make a little difference but i get a IE error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Sun, 10 Jan 2010 19:17:06 UTC


Message: 'myexample' is undefined
Line: 3136
Char: 1
Code: 0
URI: http://www.tzaclan.net/


Message: 'myexample' is undefined
Line: 3136
Char: 1
Code: 0
URI: http://www.tzaclan.net/


So i might uninstall it but i don't see the .httacess file?

anyone help or give a little advice?

thanks


UPDATE:
Ok,i finally found the .htpacess file and deleted it but i'm still getting the IE error..where/How do i fix it ? it drives me nuts to have errors.
thanks

zombietom 01-10-2010 08:20 PM

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Sun, 10 Jan 2010 19:17:06 UTC


Message: 'myexample' is undefined
Line: 3136
Char: 1
Code: 0
URI: http://www.tzaclan.net/


Message: 'myexample' is undefined
Line: 3136
Char: 1
Code: 0
URI: http://www.tzaclan.net/


^ how do i find out where this error is..come on i know some of you wizards know how to help me

thanks

random1231231231 03-05-2010 03:58 AM

Can i use it on vb 4.0.2 ? I am really interested.

DimOK 03-08-2010 05:10 PM

Just add this line to .htaccess and it will work almost the same way...

it tells apache to gzip all text files (pages, css, js, rss)

Code:

<ifmodule mod_headers.c>
  <ifmodule mod_deflate.c>
   
    # Compress some text file types
    AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
   
    # Deactivate compression for buggy browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
   
  </ifmodule>
</ifmodule>


ps2wiz 03-15-2010 09:01 AM

Well, I use a windows server so it does not use a .htaccess file. Any instructions to configure this for my web.config file with vbseo?

Thanks

ccozkaraca 03-16-2010 08:00 AM

Quote:

Originally Posted by semprot (Post 1997481)
Can i use it on vb 4.0.2 ? I am really interested.


Yeah can we use this on VB 4.0.2 ???

Simon Lloyd 03-17-2010 08:55 AM

Quote:

Originally Posted by DimOK (Post 1999921)
Just add this line to .htaccess and it will work almost the same way...

it tells apache to gzip all text files (pages, css, js, rss)

Code:

<ifmodule mod_headers.c>
  <ifmodule mod_deflate.c>
   
    # Compress some text file types
    AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
   
    # Deactivate compression for buggy browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
   
  </ifmodule>
</ifmodule>


Does adding this to my forums .htaccess despense with the need for this mod? it's just that this mod seems to have more load on the server which i can't afford to have as my forum is heavy in that respect.

ps2wiz 05-05-2010 02:51 AM

How do I check that It is properly working on my site?

doraj 05-05-2010 08:04 PM

Quote:

Originally Posted by hydn (Post 1695340)
This works on my windows server running IIS6 and custom mod rewrite:

See before an after:

I went from an F rating on yslow FF plugin to B's, C's.

Thanks somuch :up:

https://vborg.vbsupport.ru/attachmen...5&d=1230451826

Hello Hydn, sorry but with what software do you make these screenshots? Page Speed for Firefox or other?

Thanks

pedroenf 06-06-2010 01:34 PM

Install a firefox plugin named yslow.

sweetguy2004 06-08-2010 10:41 AM

this stuff simply rockss thanks mate

RTMdotORG 06-29-2010 07:33 PM

This made my Manage Attachment button disappear....

Juggernaut 07-13-2010 11:27 PM

Is this compatible with vBulletin 4.0.4?

onesexforum 10-28-2010 10:41 AM

is this compatible with the vBulletin 4.0.7 and 4.0.8??

evo10 12-05-2010 06:24 PM

Installed in VB 3.7.4, but the zip doesn't contain a .htaccess file, so my question is how does my forum know to run redir.php?

Thanks in advance.

final kaoss 01-20-2011 02:31 PM

the zip does indeed contain a .htaccess file. Also this mod works with vb 4.1.1


Here's the guts of the included .htaccess file

Code:

RewriteEngine On

####Charset
AddDefaultCharset Off

####Gzip
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)(js|css)$ redir.php?file=$1$2&type=$2 [L]
</IfModule>

####ETags
FileETag None

####Expires
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType application/x-shockwave-flash A2592000
ExpiresByType text/css A2592000
ExpiresByType application/x-javascript A2592000
</IfModule>


TeknoSounds 01-21-2011 03:07 AM

how long before this takes effect?
Have added into htaccess of my main root and forum root, but nothing seems to be happening :( Restarted apache, flushed my xcache, reran optimizations from vb supercharged....

synseal 07-01-2011 10:04 AM

working with 4.1.4 :up:

https://vborg.vbsupport.ru/external/2011/07/55.png

TeknoSounds 07-01-2011 10:14 AM

Quote:

Originally Posted by TeknoSounds (Post 2152234)
how long before this takes effect?
Have added into htaccess of my main root and forum root, but nothing seems to be happening :( Restarted apache, flushed my xcache, reran optimizations from vb supercharged....

found out didn't have the setting turned on in apache to use the htaccess file. Turned on and it borked everything. Haven't gotten around to sifting out the errors yet though, been lazy :p

CrystaStarLight 07-10-2011 04:00 AM

Hi, this has sped up my forum greatly, however I'm getting tons of errors in my cpanel's error log, it's repeating every minute. I'll show the errors below. Is there anyway to fix these?

Code:

[Sat Jul 09 23:07:23 2011] [error] [client 24.2.245.152] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/****/public_html/forum/redir.php:14) in /home/****/public_html/forum/redir.php on line 37, referer: http://www.****.com/forum/forums/32-Caption-Me!/page8?order=desc

[Sat Jul 09 23:07:23 2011] [error] [client 24.2.245.152] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/****/public_html/forum/redir.php:14) in /home/****/public_html/forum/redir.php on line 37, referer: http://www.****.com/forum/forums/32-Caption-Me!/page8?order=desc

[Sat Jul 09 23:07:23 2011] [error] [client 24.2.245.152] PHP Warning:  implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /home/****/public_html/forum/redir.php on line 34, referer: http://www.****.com/forum/forums/32-Caption-Me!/page8?order=desc


Edit: I've noticed my htacess file is a bit modified. It has the same code from Yslow, but with extra for other programs, and extra optimizations. Would any of this be conflicting to create those errors?
......................................

Code:

RewriteEngine on

# If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
# RewriteBase /forum/

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

# 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]

####Charset
AddDefaultCharset Off

####Gzip
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?do=/$1
RewriteRule ^(.*)(js|css)$ redir.php?file=$1$2&type=$2 [L]
# Image Access Protection
# RewriteRule ^file/pic/photo/(.*)\.(.*)$ static/image.php?file=$1&ext=$2
</IfModule>

####ETags
FileETag None

<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType application/x-shockwave-flash A2592000
ExpiresByType text/css A2592000
ExpiresByType application/x-javascript A2592000
</ifModule>

<ifModule mod_headers.c>
  <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=259200, public"
  </filesMatch>
  <filesMatch "\\.(css)$">
    Header set Cache-Control "max-age=604800, public"
  </filesMatch>
  <filesMatch "\\.(js)$">
    Header set Cache-Control "max-age=21600, private"
  </filesMatch>
  <filesMatch "\\.(xml|txt)$">
    Header set Cache-Control "max-age=21600, public, must-revalidate"
  </filesMatch>
  <filesMatch "\\.(html|htm|php)$">
    Header set Cache-Control "max-age=1, private, must-revalidate"
  </filesMatch>
</ifModule>

<ifModule mod_headers.c>
  Header unset ETag
</ifModule>

<ifModule mod_headers.c>
  Header unset Last-Modified
</ifModule>

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

php_value memory_limit "64M"
php_value upload_max_filesize 3M

Thank you!

benstillman 07-26-2011 02:47 AM

Nevermind.


All times are GMT. The time now is 06:52 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.02844 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete