에서 URL을 리디렉션하려고합니다.
http://localhost/manual/$
...에
http://localhost/manual/index.php?type=post&post=$
내 파일 .htaccess는
RewriteEngine On
RewriteBase /manual/
RewriteCond %{REQUEST_FILENAME} !-f # Existing File
RewriteCond %{REQUEST_FILENAME} !-d # Existing Directory
RewriteRule . /manual/index.php? [L]
RewriteRule ^([^/]*)\/$ type=post&post=$1 [L]
그러나 htaccess를 생성하는 것을 이해하지 못하기 때문에 중복되는 경우 죄송합니다.
/manual/.htaccess 에서 다음 규칙을 사용할 수 있습니다 .
RewriteEngine on
RewriteBase /manual/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?type=post&post=$1 [L]
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다