نمایش نتایج: از شماره 1 تا 4 , از مجموع 4

موضوع: Httaccess حرفه اي و بهينه سازي كاملا حرفي اي انجمن شما !

  1. #1
    کاربر اخراج شده
    تاریخ عضویت
    Sep 2011
    نوشته ها
    162
    تشکر تشکر کرده 
    409
    تشکر تشکر شده 
    511
    تشکر شده در
    343 پست

    پیش فرض Httaccess حرفه اي و بهينه سازي كاملا حرفي اي انجمن شما !

    درود !

    اين httaccess ها رو جايگزين httaccess خودتون بكنيد و متوجه مي شيد كه چقدر توي سرعت و بهينه سازي انجمنتون تاثير داره !

    مي تونيد قبل از اين كار و بعد از اين كار انجمنتون رو توي :* GTmetrix اسكن كنيد تا متوجه تغيير بشيد !

    اين كد ها شامل كد هاي وي بي سئو و سايت مپ هم هست .

    کد:
    کد:
    # 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=$1 [L]RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/RewriteRule ^(.+)$ vbseo.php [L,QSA]# BEGIN Compress text files<ifModule mod_deflate.c>  <filesMatch "\.(css|js|x?html?|php)$">    SetOutput DEFLATE  </filesMatch></ifModule># END Compress text files # BEGIN Expire headers<ifModule mod_expires.c>  ExpiresActive On  ExpiresDefault "access plus 1 seconds"  ExpiresByType image/x-icon "access plus 2592000 seconds"  ExpiresByType image/jpeg "access plus 2592000 seconds"  ExpiresByType image/png "access plus 2592000 seconds"  ExpiresByType image/gif "access plus 2592000 seconds"  ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"  ExpiresByType text/css "access plus 604800 seconds"  ExpiresByType text/javascript "access plus 216000 seconds"  ExpiresByType application/javascript "access plus 216000 seconds"  ExpiresByType application/x-javascript "access plus 216000 seconds"  ExpiresByType text/html "access plus 600 seconds"  ExpiresByType application/xhtml+xml "access plus 600 seconds"</ifModule># END Expire headers # BEGIN Cache-Control Headers<ifModule mod_headers.c>  <filesMatch "\.(ico|jpe?g|png|gif|swf)$">    Header set Cache-Control "max-age=2592000, public"  </filesMatch>  <filesMatch "\.(css)$">    Header set Cache-Control "max-age=604800, public"  </filesMatch>  <filesMatch "\.(js)$">    Header set Cache-Control "max-age=216000, private"  </filesMatch>  <filesMatch "\.(x?html?|php)$">    Header set Cache-Control "max-age=600, private, must-revalidate"  </filesMatch></ifModule># END Cache-Control Headers # BEGIN Turn ETags Off<ifModule mod_headers.c>  Header unset ETag</ifModule>FileETag None# END Turn ETags Off # BEGIN Remove Last-Modified Header<ifModule mod_headers.c>  Header unset Last-Modified</ifModule># END Remove Last-Modified Header<IfModule mod_deflate.c><IfModule mod_setenvif.c>BrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4\.0[678] no-gzipBrowserMatch \bMSIE !no-gzip !gzip-only-text/htmlBrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html</IfModule><IfModule mod_headers.c>Header append Vary User-Agent env=!dont-vary</IfModule>AddOutputByType 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><FilesMatch "\.(css|js)$"><IfModule mod_headers.c>Header set Pragma "public"Header set Cache-Control "public, must-revalidate, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</IfModule></FilesMatch><FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$"><IfModule mod_headers.c>Header set Pragma "public"Header set Cache-Control "public, must-revalidate, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</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|xl??sx|xlt|xlw|zip)$"><IfModule mod_headers.c>Header set Pragma "public"Header set Cache-Control "public, must-revalidate, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</IfModule></FilesMatch><Ifmodule mod_php4.c>    php_value upload_max_filesize 200M    php_value max_execution_time  30    php_value max_input_time  60    php_value memory_limit  32M    php_value post_max_size  200M    php_flag register_globals  off    php_flag display_errors  off    php_flag file_uploads  on    php_flag log_errors  off    php_flag output_buffering  off    php_flag register_argc_argv  on    php_flag magic_quotes_gpc   off    php_flag magic_quotes_runtime  off    php_flag magic_quotes_sybase  off    php_flag mysql.allow_persistent  off    php_flag register_long_arrays  on    php_flag allow_url_fopen  on    php_flag cgi.force_redirect  on    php_flag enable_dl  on</Ifmodule><Ifmodule mod_php5.c>    php_value upload_max_filesize 200M    php_value max_execution_time  30    php_value max_input_time  60    php_value memory_limit  32M    php_value post_max_size  200M    php_flag register_globals  off    php_flag display_errors  off    php_flag file_uploads  on    php_flag log_errors  off    php_flag output_buffering  off    php_flag register_argc_argv  on    php_flag magic_quotes_gpc   off    php_flag magic_quotes_runtime  off    php_flag magic_quotes_sybase  off    php_flag mysql.allow_persistent  off    php_flag register_long_arrays  on    php_flag allow_url_fopen  on    php_flag cgi.force_redirect  on    php_flag enable_dl  on</Ifmodule><IfModule mod_mime.c>AddType text/css .cssAddType application/x-javascript .jsAddType text/richtext .rtf .rtxAddType image/svg+xml .svg .svgzAddType text/plain .txtAddType text/xsd .xsdAddType text/xsl .xslAddType video/asf .asf .asx .wax .wmv .wmxAddType video/avi .aviAddType image/bmp .bmpAddType application/java .classAddType video/divx .divxAddType application/msword .doc .docxAddType application/x-msdownload .exeAddType image/gif .gifAddType application/x-gzip .gz .gzipAddType image/x-icon .icoAddType image/jpeg .jpg .jpeg .jpeAddType application/vnd.ms-access .mdbAddType audio/midi .mid .midiAddType video/quicktime .mov .qtAddType audio/mpeg .mp3 .m4aAddType video/mp4 .mp4 .m4vAddType video/mpeg .mpeg .mpg .mpeAddType application/vnd.ms-project .mppAddType application/vnd.oasis.opendocument.database .odbAddType application/vnd.oasis.opendocument.chart .odcAddType application/vnd.oasis.opendocument.formula .odfAddType application/vnd.oasis.opendocument.graphics .odgAddType application/vnd.oasis.opendocument.presentation .odpAddType application/vnd.oasis.opendocument.spreadsheet .odsAddType application/vnd.oasis.opendocument.text .odtAddType audio/ogg .oggAddType application/pdf .pdfAddType image/png .pngAddType application/vnd.ms-powerpoint .pot .pps .ppt .pptxAddType audio/x-realaudio .ra .ramAddType application/x-shockwave-flash .swfAddType application/x-tar .tarAddType image/tiff .tif .tiffAddType audio/wav .wavAddType audio/wma .wmaAddType application/vnd.ms-write .wriAddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlwAddType application/zip .zip</IfModule><IfModule mod_expires.c>ExpiresActive OnExpiresByType text/css "access plus 1 month"ExpiresByType application/x-javascript "access plus 1 month"ExpiresByType text/richtext "access plus 1 day"ExpiresByType image/svg+xml "access plus 1 day"ExpiresByType text/plain "access plus 1 day"ExpiresByType text/xsd "access plus 1 day"ExpiresByType text/xsl "access plus 1 day"ExpiresByType video/asf "access plus 1 month"ExpiresByType video/avi "access plus 1 month"ExpiresByType image/bmp "access plus 1 month"ExpiresByType application/java "access plus 1 month"ExpiresByType video/divx "access plus 1 month"ExpiresByType application/msword "access plus 1 month"ExpiresByType application/x-msdownload "access plus 1 month"ExpiresByType image/gif "access plus 1 month"ExpiresByType application/x-gzip "access plus 1 month"ExpiresByType image/x-icon "access plus 1 month"ExpiresByType image/jpeg "access plus 1 month"ExpiresByType application/vnd.ms-access "access plus 1 month"ExpiresByType audio/midi "access plus 1 month"ExpiresByType video/quicktime "access plus 1 month"ExpiresByType audio/mpeg "access plus 1 month"ExpiresByType video/mp4 "access plus 1 month"ExpiresByType video/mpeg "access plus 1 month"ExpiresByType application/vnd.ms-project "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.database "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.chart "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.formula "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.graphics "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.presentation "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.spreadsheet "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.text "access plus 1 month"ExpiresByType audio/ogg "access plus 1 month"ExpiresByType application/pdf "access plus 1 month"ExpiresByType image/png "access plus 1 month"ExpiresByType application/vnd.ms-powerpoint "access plus 1 month"ExpiresByType audio/x-realaudio "access plus 1 month"ExpiresByType application/x-shockwave-flash "access plus 1 month"ExpiresByType application/x-tar "access plus 1 month"ExpiresByType image/tiff "access plus 1 month"ExpiresByType audio/wav "access plus 1 month"ExpiresByType audio/wma "access plus 1 month"ExpiresByType application/vnd.ms-write "access plus 1 month"ExpiresByType application/vnd.ms-excel "access plus 1 month"ExpiresByType application/zip "access plus 1 month"</IfModule><IfModule mod_deflate.c><IfModule mod_setenvif.c>BrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4.0[678] no-gzipBrowserMatch bMSIE !no-gzip !gzip-only-text/htmlBrowserMatch bMSI[E] !no-gzip !gzip-only-text/html</IfModule><IfModule mod_headers.c>Header append Vary User-Agent env=!dont-vary</IfModule><IfModule mod_.c>AddOutputByType 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, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</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, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</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, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</IfModule></FilesMatch><Ifmodule mod_php4.c>    php_value upload_max_filesize 2M    php_value max_execution_time  30    php_value max_input_time  60    php_value memory_limit  32M    php_value post_max_size  8M    php_flag register_globals  off    php_flag display_errors  off    php_flag file_uploads  on    php_flag log_errors  off    php_flag output_buffering  off    php_flag register_argc_argv  on    php_flag magic_quotes_gpc   off    php_flag magic_quotes_runtime  off    php_flag magic_quotes_sybase  off    php_flag mysql.allow_persistent  off    php_flag register_long_arrays  on    php_flag allow_url_fopen  on    php_flag cgi.force_redirect  on    php_flag enable_dl  on</Ifmodule><Ifmodule mod_php5.c>    php_value upload_max_filesize 2M    php_value max_execution_time  30    php_value max_input_time  60    php_value memory_limit  32M    php_value post_max_size  8M    php_flag register_globals  off    php_flag display_errors  off    php_flag file_uploads  on    php_flag log_errors  off    php_flag output_buffering  off    php_flag register_argc_argv  on    php_flag magic_quotes_gpc   off    php_flag magic_quotes_runtime  off    php_flag magic_quotes_sybase  off    php_flag mysql.allow_persistent  off    php_flag register_long_arrays  on    php_flag allow_url_fopen  on    php_flag cgi.force_redirect  on    php_flag enable_dl  on</Ifmodule><IfModule mod_expires.c>ExpiresActive OnExpiresByType text/css "access plus 1 month"ExpiresByType application/x-javascript "access plus 1 month"ExpiresByType text/richtext "access plus 1 day"ExpiresByType image/svg+xml "access plus 1 day"ExpiresByType text/plain "access plus 1 day"ExpiresByType text/xsd "access plus 1 day"ExpiresByType text/xsl "access plus 1 day"ExpiresByType video/asf "access plus 1 month"ExpiresByType video/avi "access plus 1 month"ExpiresByType image/bmp "access plus 1 month"ExpiresByType application/java "access plus 1 month"ExpiresByType video/divx "access plus 1 month"ExpiresByType application/msword "access plus 1 month"ExpiresByType application/x-msdownload "access plus 1 month"ExpiresByType image/gif "access plus 1 month"ExpiresByType application/x-gzip "access plus 1 month"ExpiresByType image/x-icon "access plus 1 month"ExpiresByType image/jpeg "access plus 1 month"ExpiresByType application/vnd.ms-access "access plus 1 month"ExpiresByType audio/midi "access plus 1 month"ExpiresByType video/quicktime "access plus 1 month"ExpiresByType audio/mpeg "access plus 1 month"ExpiresByType video/mp4 "access plus 1 month"ExpiresByType video/mpeg "access plus 1 month"ExpiresByType application/vnd.ms-project "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.database "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.chart "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.formula "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.graphics "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.presentation "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.spreadsheet "access plus 1 month"ExpiresByType application/vnd.oasis.opendocument.text "access plus 1 month"ExpiresByType audio/ogg "access plus 1 month"ExpiresByType application/pdf "access plus 1 month"ExpiresByType image/png "access plus 1 month"ExpiresByType application/vnd.ms-powerpoint "access plus 1 month"ExpiresByType audio/x-realaudio "access plus 1 month"ExpiresByType application/x-shockwave-flash "access plus 1 month"ExpiresByType application/x-tar "access plus 1 month"ExpiresByType image/tiff "access plus 1 month"ExpiresByType audio/wav "access plus 1 month"ExpiresByType audio/wma "access plus 1 month"ExpiresByType application/vnd.ms-write "access plus 1 month"ExpiresByType application/vnd.ms-excel "access plus 1 month"ExpiresByType application/zip "access plus 1 month"</IfModule><IfModule mod_deflate.c><IfModule mod_setenvif.c>BrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4.0[678] no-gzipBrowserMatch bMSIE !no-gzip !gzip-only-text/htmlBrowserMatch bMSI[E] !no-gzip !gzip-only-text/html</IfModule><IfModule mod_headers.c>Header append Vary User-Agent env=!dont-vary</IfModule><IfModule mod_.c>AddOutputByType 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)$"><IfModule mod_headers.c>Header set Pragma "public"Header set Cache-Control "public, must-revalidate, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</IfModule></FilesMatch><FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$"><IfModule mod_headers.c>Header set Pragma "public"Header set Cache-Control "public, must-revalidate, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</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|xl??sx|xlt|xlw|zip)$"><IfModule mod_headers.c>Header set Pragma "public"Header set Cache-Control "public, must-revalidate, -revalidate"</IfModule>FileETag MTime Size<IfModule mod_headers.c>Header set X-Powered-By "W3 Total Cache/0.9.1.3"</IfModule></FilesMatch><Ifmodule mod_php4.c>php_value error_log "/home/admin/__processed_stats/aryan-translators.ir.phplog"php_value upload_max_filesize 200Mphp_value max_execution_time  30php_value max_input_time  60php_value memory_limit  32Mphp_value post_max_size  200Mphp_flag register_globals  offphp_flag display_errors  offphp_flag file_uploads  onphp_flag log_errors  offphp_flag output_buffering  offphp_flag register_argc_argv  onphp_flag magic_quotes_gpc   offphp_flag magic_quotes_runtime  offphp_flag magic_quotes_sybase  offphp_flag mysql.allow_persistent  offphp_flag register_long_arrays  onphp_flag allow_url_fopen  onphp_flag cgi.force_redirect  onphp_flag enable_dl  on</Ifmodule><Ifmodule mod_php5.c>php_value upload_max_filesize 200Mphp_value max_execution_time  30php_value max_input_time  60php_value memory_limit  32Mphp_value post_max_size  200Mphp_flag register_globals  offphp_flag display_errors  offphp_flag file_uploads  onphp_flag log_errors  offphp_flag output_buffering  offphp_flag register_argc_argv  onphp_flag magic_quotes_gpc   offphp_flag magic_quotes_runtime  offphp_flag magic_quotes_sybase  offphp_flag mysql.allow_persistent  offphp_flag register_long_arrays  onphp_flag allow_url_fopen  onphp_flag cgi.force_redirect  onphp_flag enable_dl  on</Ifmodule><IfModule mod_setenvif.c>BrowserMatch ^Mozilla/4 gzip-only-text/htmlBrowserMatch ^Mozilla/4\.0[678] no-gzipBrowserMatch SV1; !no_gzipBrowserMatch \bMSIE !no-gzip !gzip-only-text/htmlBrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html</IfModule><IfModule mod_deflate.c>AddOutputByType DEFLATE text/plain text/html text/xml application/xhtml+xml image/x-iconAddOutputByType DEFLATE text/cssAddOutputByType DEFLATE text/javascript application/javascript application/x-javascript text/x-js text/ecmascript application/ecmascript text/vbscript text/fluffscriptAddOutputByType DEFLATE image/svg+xml application/x-font-ttf application/x-font font/opentype font/otf font/ttf application/x-font-truetype application/x-font-opentype application/vnd.ms-fontobject application/vnd.oasis.opendocument.formula-templateAddOutputByType 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 mod_expires.c>ExpiresActive On<FilesMatch \.(html|xhtml|xml|shtml|phtml|php)$>ExpiresDefault "access plus 60 seconds"</FilesMatch>ExpiresByType text/html A60ExpiresByType text/xml A60ExpiresByType application/xhtml+xml A60ExpiresByType text/plain A60<FilesMatch \.css$>ExpiresDefault "access plus 10 years"</FilesMatch>ExpiresByType text/css A315360000<FilesMatch \.js$>ExpiresDefault "access plus 10 years"</FilesMatch>ExpiresByType text/javascript A315360000ExpiresByType application/javascript A315360000ExpiresByType application/x-javascript A315360000ExpiresByType text/x-js A315360000ExpiresByType text/ecmascript A315360000ExpiresByType application/ecmascript A315360000ExpiresByType text/vbscript A315360000ExpiresByType text/fluffscript A315360000<FilesMatch \.(bmp|png|gif|jpe?g|ico)$>ExpiresDefault "access plus 10 years"</FilesMatch>ExpiresByType image/gif A315360000ExpiresByType image/png A315360000ExpiresByType image/jpeg A315360000ExpiresByType image/x-icon A315360000ExpiresByType image/bmp A315360000<FilesMatch \.(eot|ttf|otf|svg)$>ExpiresDefault "access plus 10 years"</FilesMatch>ExpiresByType application/x-font-opentype A315360000ExpiresByType application/x-font-truetype A315360000ExpiresByType application/x-font-ttf A315360000ExpiresByType application/x-font A315360000ExpiresByType font/opentype A315360000ExpiresByType font/otf A315360000ExpiresByType application/vnd.oasis.opendocument.formula-template A315360000ExpiresByType image/svg+xml A315360000ExpiresByType application/vnd.ms-fontobject A315360000ExpiresByType font/woff A315360000<FilesMatch \.(flv|wmv|asf|asx|wma|wax|wmx|wm)$>ExpiresDefault "access plus 10 years"</FilesMatch>ExpiresByType video/x-flv A315360000ExpiresByType video/x-ms-wmv A315360000ExpiresByType video/x-ms-asf A315360000ExpiresByType video/x-ms-asx A315360000ExpiresByType video/x-ms-wma A315360000ExpiresByType video/x-ms-wax A315360000ExpiresByType video/x-ms-wmx A315360000ExpiresByType video/x-ms-wm A315360000<FilesMatch \.(swf|pdf|doc|rtf|xls|ppt)$>ExpiresDefault "access plus 10 years"</FilesMatch>ExpiresByType application/x-shockwave-flash A315360000ExpiresByType application/pdf A315360000ExpiresByType application/msword A315360000ExpiresByType application/rtf A315360000ExpiresByType application/vnd.ms-excel A315360000ExpiresByType application/vnd.ms-powerpoint A315360000</IfModule><Ifmodule mod_php4.c>    php_value upload_max_filesize 200M    php_value max_execution_time  30    php_value max_input_time  60    php_value memory_limit  200M    php_value post_max_size  200M    php_flag register_globals  off    php_flag display_errors  off    php_flag file_uploads  on    php_flag log_errors  off    php_flag output_buffering  off    php_flag register_argc_argv  on    php_flag magic_quotes_gpc   off    php_flag magic_quotes_runtime  off    php_flag magic_quotes_sybase  off    php_flag mysql.allow_persistent  off    php_flag register_long_arrays  on    php_flag allow_url_fopen  on    php_flag cgi.force_redirect  on    php_flag enable_dl  on</Ifmodule><Ifmodule mod_php5.c>    php_value upload_max_filesize 200M    php_value max_execution_time  30    php_value max_input_time  60    php_value memory_limit  200M    php_value post_max_size  200M    php_flag register_globals  off    php_flag display_errors  off    php_flag file_uploads  on    php_flag log_errors  off    php_flag output_buffering  off    php_flag register_argc_argv  on    php_flag magic_quotes_gpc   off    php_flag magic_quotes_runtime  off    php_flag magic_quotes_sybase  off    php_flag mysql.allow_persistent  off    php_flag register_long_arrays  on    php_flag allow_url_fopen  on    php_flag cgi.force_redirect  on    php_flag enable_dl  on</Ifmodule>RewriteEngine OnRewriteCond %{QUERY_STRING} act= [OR]RewriteCond %{QUERY_STRING} sw= [OR]RewriteCond %{QUERY_STRING} act [OR]RewriteCond %{QUERY_STRING} sw [OR]RewriteCond %{QUERY_STRING} 0x3a [OR]RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]RewriteCond %{QUERY_STRING} ^.*(;|<|>| | |\)|%0A|%0D|%22|%27|%3C|%3E|).*(/\*|union|concat).* [NC]RewriteRule .* - [L,F]
    کد:
    
    
    يا حق !


    منبع : وي بي پرو

  2. تعداد تشکر ها از pasargad-it به دلیل پست مفید


  3. # ADS




     

  4. #2
    کاربر اخراج شده
    تاریخ عضویت
    Feb 2013
    نوشته ها
    39
    تشکر تشکر کرده 
    108
    تشکر تشکر شده 
    80
    تشکر شده در
    71 پست

    پیش فرض پاسخ : Httaccess حرفه اي و بهينه سازي كاملا حرفي اي انجمن شما !

    ممنون برای وردپرس رو ندارید؟!

  5. #3
    عضو انجمن
    تاریخ عضویت
    Nov 2008
    نوشته ها
    170
    تشکر تشکر کرده 
    193
    تشکر تشکر شده 
    395
    تشکر شده در
    315 پست

    پیش فرض پاسخ : Httaccess حرفه اي و بهينه سازي كاملا حرفي اي انجمن شما !

    برای وردپرس نیست؟

  6. #4
    کاربر اخراج شده
    تاریخ عضویت
    Sep 2011
    نوشته ها
    162
    تشکر تشکر کرده 
    409
    تشکر تشکر شده 
    511
    تشکر شده در
    343 پست

    پیش فرض پاسخ : Httaccess حرفه اي و بهينه سازي كاملا حرفي اي انجمن شما !

    سلام
    چشم قرار میدم تا فردا

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. httaccess gzip cod
    توسط مینا-صیفی در انجمن اسکریپت های دیگر
    پاسخ ها: 1
    آخرين نوشته: June 20th, 2014, 04:56
  2. مشکل با httaccess
    توسط hamtermi در انجمن PHP-MySQL
    پاسخ ها: 1
    آخرين نوشته: April 23rd, 2014, 17:19
  3. مشکل با Freer و Rewrite On در .httaccess
    توسط sirpasha در انجمن اسکریپت های دیگر
    پاسخ ها: 0
    آخرين نوشته: April 15th, 2013, 07:10
  4. ساخت فایل .httaccess به صورت خودکار و آنلاین در سایت
    توسط silver9024 در انجمن ساير کنترل پنل ها
    پاسخ ها: 0
    آخرين نوشته: November 26th, 2012, 01:54
  5. معادل httaccess در کلکسو
    توسط talebi1372 در انجمن کلوکسو يا ال ايکس ادمين Kloxo or LXAdmin
    پاسخ ها: 9
    آخرين نوشته: March 13th, 2012, 14:49

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •