0
나는 내부 PHP 애플리케이션 내 URL을 다시하기 위해 노력하고있어하지만 그것은 단지 하나의 URL에서 작동 나던 :URL 다시 쓰기 : ONE 하나의 URL이 작동하지
<a href='/device/' >Link text</a>
<a href='/brand/' >Link text</a>
의 .htaccess를
(구글에 있음) 링크에RewriteEngine on
Options -MultiViews
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301]
RewriteRule ^([a-zA-Z/]+)?$ index.php?vars=$1 [NC,L]
결과 클릭 :
http://localhost/index.php/?vars=device/
http://localhost/brand/
그리고 모두 작동합니다. 어떤 아이디어? 고마워요