호스트의 Wordpress 사이트 중 하나에 문제가 있습니다.
Today I installed "Traffic Stats Widget" - plugin and I followed their instructions for installation. So , I did this:
Create a robots.php file on the root directory of your blog: ie public_html/your-blog/ Paste the following code without // in it:
# #
Open .htaccess file in the same directory and paste this in it:
RewriteRule robots.txt robots.php
Make sure you have the 'RewriteEngine On' clause in place...
Make sure you have a robots.txt file, even an empty one, on the root directory
그 후 모든 하위 페이지에 액세스 할 수 없었습니다.
이것은 내 웹 사이트의 링크입니다.
http://idealpvc-dev.com/websites/camel/
일부 하위 페이지에 액세스하려고하면 오류 404가 표시됩니다.
.htaccess 파일을 복원했지만 여전히 작동하지 않기 때문에 이유를 모르겠습니다.
또한 다른 워드 프레스 사이트의 다른 .htaccess 파일과 비교했지만 폴더 이름 외에는 차이가 없습니다.
어떤 제안이라도 감사하겠습니다.
또한 위는 내 .htaccess의 내용입니다.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /websites/camel/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /websites/camel/index.php [L]
</IfModule>
# END WordPress
사이트는 / public_html / websites / camel에 있습니다.
미리 감사드립니다
htaccess 파일에서 이것을 RewrieBase로 만드십시오.
RewriteBase http://idealpvc-dev.com/websites/camel/
이 대신
RewriteBase /websites/camel/
그리고 Wordpress 관리자 패널> 설정 >> 영구 링크 >>> 기본값에서 WordPress 영구 링크를 기본값으로 설정합니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다