HTTP 리소스의 URL을 리소스의 고유 식별자로 사용하고 있습니다 (놀랍게도).특정 검색어를 제외한 일치하는 URL을 찾는 방법은 무엇입니까?
이 모두 다르다 :
http://localhost/Docs/SomeDocument?group=33&checksafety=true
http://localhost/Docs/SomeDocument?group=11&checksafety=true
http://localhost/Docs/SomeDocument?group=11&checksafety=false
는 그러나, 나는 자원을 구별하지 말아야 세 번째 쿼리 매개 변수를 (서버 측에서, 데이터베이스에서 동일한 데이터를 가져옵니다).
이
같은 (그룹 및 checksafety 매개 변수가 동일)입니다http://localhost/Docs/SomeDocument?group=11&checksafety=false&rendergroup=A
http://localhost/Docs/SomeDocument?group=11&checksafety=false&rendergroup=B
http://localhost/Docs/SomeDocument?rendergroup=C&group=11&checksafety=false
여기 정규식 적당합니까?
더 좋은 방법이 있습니까?
저는 C#, .NET 3.5 및 ASP.NET을 사용하고 있습니다.
에 http : // localhost를/문서/SomeDocum group = 33 & checksafety = true 및 http : // localhost/Docs/SomeDocument? checksafety = true & group = 33이 서로 다른가요? –
@ samuelcarrijo - 그들은 동일하지 않습니다. –