vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Step by Step guide to speed up your VB4 OR VB3 (https://vborg.vbsupport.ru/showthread.php?t=267588)

TECK 11-03-2011 10:21 PM

Quote:

Originally Posted by extreme-gaming (Post 2227826)
http://discovertheartist.com/product-cdn.xml

(right click and save) & upload

That product is not available for download anymore. I contact MaxCDN and they don't have the file. Can you please attach it here? Thanks.

final kaoss 11-04-2011 11:58 AM

First you'll have to ask vbseo, since they made the plugin. My bet would be that vbseo contacted discovertheartist.com and asked them to remove the xml from public visitors.

If they wish for it to be public, it is up to them to upload it here, seeing as it isn't my product.

abumohamed 11-06-2011 01:23 AM

great article.
thank you so much

final kaoss 12-22-2011 04:59 AM

This now works for the current vbulletins (4.1.5 and up)

Jump to post 1 for the htaccess

thompson 12-31-2011 12:12 PM

will give it a try.

final kaoss 01-09-2012 10:19 PM

Updated the first post. Now the htaccess has been revised to work with practically any vbulletin setup with or without vbseo installed.

Hornstar 01-31-2012 08:51 AM

Hey I am on vb 3.8.x with vbseo.

Which set of rules should I add to my htaccess file? The one in the first post? or is the one in the 2nd post better? It just looks strange in the fist post because lots of it says vbulletin 4.

Thanks.

final kaoss 02-02-2012 01:01 AM

they are both the same thing. Essentially when using vbseo, the htaccess would look like this.

PHP Code:

# 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\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

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

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

RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$[L,QSA]

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

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


weave 02-14-2012 05:43 AM

**Post removed**

w8baby 02-23-2012 03:59 PM

the chatbox seems to stop refreshing/showing content after the .htaccess update from the first post edit


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01863 seconds
  • Memory Usage 1,840KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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