htacess를 사용하여 http://givehands.co.in/post.php?p=post&id=1
에서 http://givehands.co.in/post/1/
까지 URL을 다시 쓰려고했습니다.재 작성 대신 재 작성 조건 리디렉션
하지만 URL을 다시 쓰지 않고 http://givehands.co.in/post.php?p=post&id=1
으로 리디렉션됩니까? 내 도메인 givehands 내 웹 서버의 하위 디렉토리에 매핑됩니다.
정확한 재 작성 규칙을 도와 줄 수 있습니까? 이 새로운 Iam. 이 힘에 전체 URL을 퍼팅
RewriteCond %{REQUEST_URI} post/
RewriteRule post/ http://givehands.co.in/post.php [L]
아파치를 다시 작성하는 대신 브라우저를 리디렉션 : 당신이 전체 사용자의 리디렉션 규칙의 URL을 가지고있는 것처럼
Options -Multiviews
RewriteEngine On # Turn on the rewriting engine
RewriteBase/
RewriteCond %{REQUEST_URI} post/(.*)
RewriteRule post/(.*)/ http://givehands.co.in/post.php?p=post&id=$1 [L]
RewriteCond %{REQUEST_URI} post/
RewriteRule post/ http://givehands.co.in/post.php [L]
후 당신의 .htaccess의 내용에 대한 주제입니다. 아마도'[L]'만 가져야 할 때'[L, R]'을 가지고있을 것입니다. –
.htaccess 파일의 내용없이 질문에 확실하게 대답 할 수 없습니다. – aefxx
htacess 콘텐츠를 업데이트했습니다. –