나는 htaccess 지식이 좋지 않아서 시도하고 시도했지만 내 요구 사항에 맞는 것을 찾을 수는 없다. (그러나 나는 무엇을 검색하고 있는지 잘 모르겠다. 에 대한).간단한 htaccess mod 가능한 쿼리 문자열로 다시 쓰기
효과적으로 제 질문은 두 가지이다 : http://subdomain.domain.com/hello
에 :
내가 변환 할 http://subdomain.domain.com/index.php?string=hello
그러나 때때로 너무뿐만 아니라 쿼리 문자열이있을 수 있습니다 ...
에서 : http://subdomain.domain.com/hello?query=true
으로 : http://subdomain.domain.com/index.php?string=hello&query=true
지금까지 처음 관리 :
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
RewriteRule ^([^/\.]+)/?$ client.php?user=$1&$2 [L]
기억하십시오, 두 번째는 잠재력입니다 :) 감사합니다!
아 ... 항상 가장 간단한 해결책입니다! 고맙습니다! – Jordan