-
December 23rd, 2014, 22:04
#11
عضو جدید
پاسخ : مشکل بعد از نصب افزونه wp super cache

نوشته اصلی توسط
partserver
یک فایل با اسم «.htaccess» در روت وردپرس بسازید. دقت کنید که نقطه اول اسمه.
بعد نوشته های زیر رو داخلش بزارید. یک سری کد هم برای سئو و امنیت داخل همین کد هست که به سایت کمک می کنه.
کد:
Options All -Indexes
<files wp-config.php>
order allow,deny
deny from all
</files>
<files ".htaccess">
order allow,deny
deny from all
</files>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
سلام
همین کار رو کردم ولی باز حل نشد وقتی فعال میکنم محتویات پنل رو نمایش نمیده
-
-
December 23rd, 2014 22:04
# ADS