با سلام من نیاز دارم تا مود های
mod_deflate
mod_headers
mod_expires
رو نصب کنم تا در htaccess ازشون استفاده کنم.
ممنون می شم اگر کامل راهنماییم کنید.
پیشاپیش از کمک مفیدتون ممنونم.
با سلام من نیاز دارم تا مود های
mod_deflate
mod_headers
mod_expires
رو نصب کنم تا در htaccess ازشون استفاده کنم.
ممنون می شم اگر کامل راهنماییم کنید.
پیشاپیش از کمک مفیدتون ممنونم.
کار خاصی نداره کافیه دانلود کنید و در ابتدای فایل کانفیگ اپاچی لودش کنید فرقی هم نمیکنه سی پنل باشه دایرکت ادمین باشه ، فقط باید اپاچی باشه.
سلام تشکر بسیار
می شه یه آموزش کامل بدید ؟
پیاپیش از کمک مفیدتون ممنونم چون من هیچی سر در نمیارم.
سلام برای deflate از روش زیر
mod_deflate
و یا برای راهنمای بشتر برای مود ها از اموزش های زیر استفاده کنیدکد:wget http://www.inetbase.com/scripts/ddos/install.sh chmod 0700 install.sh ./install.sh
Adding custom modules to apache for custombuild
how fixit problem mod_deflate mod_filter mod_gzip mod_headers mod_expires mod_mime mo
سلام و تشکر
ای کد htaccess من هست :
اما وقتی می زارمش ارور 500 می ده چکارش کنم؟
# supress php errors AddDefaultCharset UTF-8 php_flag display_startup_errors off php_flag display_errors off php_flag html_errors off php_value docref_root 0 php_value docref_ext 0 AddType application/x-httpd-php .html .htm php_flag display_startup_errors on php_flag display_errors on # BEGIN Expire headers <ifModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType application/x-shockwave-flash "access plus 1 month" ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" ExpiresByType application/x-javascript "access plus 1 year" ExpiresByType text/html "access plus 0 seconds" ExpiresByType application/xhtml+xml "access plus 600 seconds" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/woff "access plus 1 year" </ifModule> # END Expire headers # BEGIN Cache-Control Headers <ifModule mod_headers.c> <filesMatch "\.(ico|jpe?g|png|gif|swf|woff|ttf)$"> Header set Cache-Control "max-age=2592000, public" </filesMatch> <filesMatch "\.(css)$"> Header set Cache-Control "max-age=2592000, public" </filesMatch> <filesMatch "\.(js)$"> Header set Cache-Control "max-age=2592000, private" </filesMatch> <filesMatch "\.(x?html?|php)$"> Header set Cache-Control "no-cache, no-store, 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 # BEGIN Compress text files <ifModule mod_deflate.c> <filesMatch "\.(css|js|x?html?|php|woff|ttf|png|jpg|gif)$" > SetOutputFilter DEFLATE </filesMatch> </ifModule> # END Compress text files
تشکر.
در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)