# BEGIN WordPress
RewriteEngine On
RewriteBase/
RewriteCond %{HTTP_HOST} ^xyz.com$
RewriteRule ^(.*)$ https://xyz.com/$1 [R=301]
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule^- [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [L]
# END WordPress
또한 다음 코드를 시도
RewriteEngine On
RewriteBase/
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
을 이 오류를 보여줍니다. 페이지가 제대로 리디렉션되지 않습니다.
실제로는 WordPress 사이트입니다.
어떻게 해결할 수 있습니까? 사전
작동하지 않습니다. 답장을 보내 주셔서 감사합니다 –
누군가가'작동하지 않습니다'라는 의견을 어떻게 처리 할 수 있다고 생각하십니까 :) 세부 사항을 제공하십시오. 어떤 URL을 입력 했습니까? 이것이 WP .htaccess의 첫 번째 규칙입니까? ** WP permalink 설정 **을 변경 했습니까? – anubhava
xyz.com/sample-post/ its my wp permalink –