به صورت زیر در htaccess قرار دادم ولی ریدایکت نمیشه.
کد:# BEGIN WordPress<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www.acgih\.ir$ [NC] RewriteRule ^(.*)$ https://www.acgih.ir/$1 [R=301,L] RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
ویرایش توسط sir1 : August 9th, 2017 در ساعت 11:47
به صورت زیر قرار دادم کار نمیکنه:
کد:# 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>
در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)