이 htaccess 코드가 있습니다. 내가 달성하고자하는 것은/약 및에 /은/워드 프레스 폴더의 내용을 배울 웹 루트로/내용으로 다음과 같은 구조의 주소 표시 줄.htaccess URL을 변경하지 않고 codeigniter 리디렉션
#Rewrite engine rules
RewriteEngine on
RewriteBase/
RewriteCond $1 !^(index\.php|import\.php|geocode\.php|robots\.txt|BingSiteAuth\.xml|y_key_88c0d00f4917d584\.html|favicon\.ico|images|img|uploads|css|js|topics|wordpress)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^about$ /wordpress [L]
RewriteRule ^learn$ /wordpress [L]
을 변경하지 않고 요청을 리디렉션 할 수 있습니다 :
/content
/wordpress
index.php (the wordpress index.php)
.htaccess (the one we are editing)
index.php (the codeigniter index.php)
그러나 htacess 코드는 작동하지 않습니다.
대신 Wordpress 용 htaccess를 리디렉션/학습 및/또는 사용할 수 있습니까? 귀하의 답변은 작동하지 않습니다. – yretuta
리디렉션은 RewriteRule에 의해 처리되어 RewriteRule (s)을/about로 이동 한 후에도 모든 요청을 index.php로 전송하고/learn – yretuta
Wordpress 폴더에 .htaccess가 있으면 루트에있는 '/wordpress를 사용할 때조차도 사용되지 않습니다. 그래서 루트 .htaccess에서 작동하도록하는 것이 없습니다. 하지만 예, 당신은 대신 워드 프레스 .htaccess로 재작 성을 옮길 수 있습니다 -하지만 나는 wordpress allready 설정을 통해 SEO URL을 지원한다고 생각하십니까? –