.htaccess 파일에 코드를 다시 작성했습니다. 나는 워드 프레스에 정적 HTML 사이트를 이동하고 다음을 작업하기 필요 :301 리디렉션이 Wordpress에서 작동하지 않습니다.
에 내가 할 수없는 index.html을 http://domain.com.au/
으로 리디렉션되지만 루트 (홈 페이지)는 리디렉션되지 않습니다.
또한 index.html 리디렉션에 대한 페이지를 찾을 수 없습니다.
내 htaccess로 파일은 다음과 같습니다
Options +FollowSymlinks
RewriteEngine on
### re-direct index.html to root
RewriteCond %{THE_REQUEST} ^.*\/index\.html
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]
### non www to www
RewriteCond %{HTTP_HOST} ^domain\.com\.au$ [NC]
RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L]
redirect 301 /team.html http://www.domain.com.au/our-team/
redirect 301 /contact.html http://www.domain.com.au/contact-us/
누군가의 도움이 -이 내 머리를 찢어있다!
나는 비슷한 문제가 있습니다. 나는 Cpanel Redirects, Wordpress 플러그인을 사용해 보았는데,이 코드를 .htaccess에 추가했지만 아무것도 작동하지 않는 것 같습니다. 그러나 다른 웹 사이트에서도 동일한 코드를 사용할 수 있습니다. – Kandinski