0
간단한 htaccess 규칙을 사용하여 깔끔한 URL을 사용하려고합니다. 그래서,간단한 RewriteRule 도움말
RewriteRule ^domain.com\/(.){5}$ read.php?id=$1 [QSA,L]
간단한 htaccess 규칙을 사용하여 깔끔한 URL을 사용하려고합니다. 그래서,간단한 RewriteRule 도움말
RewriteRule ^domain.com\/(.){5}$ read.php?id=$1 [QSA,L]
의 RewriteRules이 도메인을 포함하지 않아야 : 단지 http://domain.com 주위에 재생 후 일반적으로
읽어처럼
http://domain.com/theid => read by http://domain.com/read.php?id=theid
하지만 여전히 내가이 (작동하지 않음) 결국 다른 URL이 다음과 같이 작성해야합니다.
RewriteRule ^/(.{5})$ /read.php?id=$1 [QSA,L]
감사합니다. althou 아직 작동하지 않는 것 같아요. – DiglettPotato
나는이 선구자가 필요하다고 생각합니다. – markijbema
아니요, 조금 수정하면됩니다.^([a-zA-Z0-9] {5}) $ read.php? id = $ 1 – DiglettPotato