
نوشته اصلی توسط
persiandroid
تمامی کدی کهمربوط به ر یدایرکت در htaccess است را حذف کنید و با کد زیر تست بگیرید:
کد:
# Redirect HTTPS to HTTP
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
به صورت زیر قرار دادم کار نمیکنه:
کد:
# BEGIN WordPress<IfModule mod_rewrite.c>
# Redirect HTTPS to HTTP
RewriteCond %{HTTP:X-Forwarded-Proto} =https
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# to protect the .htaccess file itself:
<Files .htaccess>
order deny,allow
deny from all
</Files>
# to protect wp-config.php
<Files wp-config.php>
order allow,deny
deny from all
</Files>