안녕하세요, 나는 URL 재 작성을 연습하려고합니다. .htaccess 파일을 C : \ wamp64 \ www \ RewriteUrl 경로에 썼습니다. 같은 위치에 파일 pet_care_info_01_02_2008.php가 있습니다. 내 재 작성 규칙은 다음과 같습니다 URL 재 작성 wamp 서버에서 작동하지 않습니다
RewriteEngine On # Turn on the rewriting engine
RewriteRule ^pet-care/?$ pet_care_info_01_02_2008.php [NC,L]
그래서 내가
http://localhost/RewriteUrl/pet_care_info_01_02_2008.php이
http://localhost/RewriteUrl/pet-care.php로 변경하고자합니다. 하지만 현재 그것은 내게 모든 경로를 제공하고 그것을 다시 작성하지 않습니다. 어떤 생각?
http로 시도 : //localhost/RewriteUrl/pet_care_info_01_02_2008.php는 내가 명령을 먹으 렴 URL을 입력해도 나에게 알려주지 않습니다. http : //localhost/RewriteUrl/pet-care.php – Rahila