나는워드 프레스 mod_rewrite를 사용자 정의 규칙
이는 htaccess로입니다 포스트 이름 (http://exampleblog.com/dev/the-post-slug)의 구조에 구성된 기본 워드 프레스 htaccess로있어 내가해야 할 일은
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /dev/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /dev/index.php [L]
</IfModule>
# END WordPress
는 http://exampleblog.com/dev/the-post-slug 같은 URL에 내가 http://exampleblog.com/dev/the-post-slug/mydemo처럼, 내 자신의 sulfixes을 추가 할 수 있다는 것입니다, 나는 지금 http://exampleblog.com/dev/wp-content/themes/the-theme/my-custom-folder
그래서 나는이 접근 할 필요가있다 뭔가를 가리 키도록합니다 URL http://exampleblog.com/dev/the-post-slug/mydemo to 이 실제 패치 http://exampleblog.com/dev/wp-content/themes/the-theme/my-custom-folder의 내용을 표시하고 난 그냥 방법을
감사
shortcode 방법에 대한 추가 보너스로 사용자는 실제로 검색 내용을 찾을 수 있습니다. 붙잡기 위하여 .htaccess를 사용하고 WordPress의 이상으로 방향을 바꾼다, 진짜로조차 페이지가 존재하는 것을 알지 않을 것이다. – ben
mydemo의 the-post-slug parent를 만들면 경로가 실제로 존재하지 않기 때문에 Wordpress에서이 포스트 슬러그를 깨뜨릴 수 있습니다. 다른 제안에 대해서는 불행히도 Google에서 색인을 생성하기 때문에 작동하지 않습니다. http://exampleblog.com/dev/the-post-slug/mydemo 감사합니다. 어쨌든 – steps
이 플러그인이 도움이 될 수 있습니다. http : //wordpress.org/extend/plugins/rewrite-rules-inspector/ 또는 http://codex.wordpress.org/Class_Reference/WP_Rewrite에서 WordPress를 통해 직접 다시 쓰기 규칙을 추가 할 수 있습니다. – ben