私がウェブサイトをスパイしたとき、私はこれらのような悪いURLをたくさん手に入れました.
http://example.com/../../.././././1.htm
http://example.com/test/../test/.././././1.htm
http://example.com/.//1.htm
http://example.com/../test/..//1.htm
これらはすべて である必要がありますhttp://example.com/1.htm
。PHPコードを使用してこれを行う方法、ありがとう。
PS: 私はhttp://snoopy.sourceforge.net/を使用
しています。私のデータベースには多くのリンクが繰り返されています。' http://example.com/../test/..//1.htm
' は '' である必要がありますhttp://example.com/1.htm
。