-
مشکل بخش ادمین جوملا 2.5 با کش بروزر
سلام
از طریق htaccess کش بروزر رو فعال کردم سرعت لود صفحات سایت خیلی بالا رفت ِ ولی متاسفانه بخش ادمین دچار مشکل شده، ارور ِ invalid token می ده وقتی مطالب رو تغییر می دم یا مطلب جدید می زنم.
باید راهی باشه که بشه از طریق htaccess از کش شدن بخش ادمین جلوگیری کرد. من که هرچی گشتم پیدا نکردم. چند تا دستور هم بود که باید با ایجاد یه فایل htaccess جدید توی روت administrator جلوی کش شدن رو بگیریم که تا فایل رو توی دایرکتوری ادمین ایجاد می کنم کلا بخش ادمین ارور ِ 500 می ده و بالا نمی یاد.
این کدهای فایل htaccess توی public_html هست:
کد:
## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Header unset Pragma
FileETag None
Header unset ETag
Header set Cache-Control "public"
Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
Header set Cache-Control "max-age=290304000, public"
Header set Cache-Control "max-age=172800, public, must-revalidate"
Header set Cache-Control "max-age=7200, must-revalidate"
ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType image/ico A2592000
ExpiresByType image/icon A2592000
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A300
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
کسی به این مشکل بر خورده...؟
جهت مشاهده لینک ها باید ثبت نام کنید یا لاگین کنید.
-
-
03-30-2012 11:13 PM
# ADS
تبلیغات در جوملا فارسی
علاقه مندی ها (Bookmarks)