0
Q
URL이
A
답변
2
htaccess를 사용하여이를 수행 할 수 있습니다. 그것은 선 아래로 추가 htaccess로 파일에서
http://example.com/test.php
에
http://example.com/folder/40/name/test.php
http://example.com/folder/40/test.php
처럼
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !(img|anyother folders that you want to ignore|anyother folders that you want to ignore|...)
RewriteRule ^(.*)/(.*)/(.*)/test.php$ test.php [L]
RewriteCond %{REQUEST_FILENAME} !(img|anyother folders that you want to ignore|anyother folders that you want to ignore|...)
RewriteRule ^(.*)/(.*)/test.php$ test.php [L]
자세한 내용을 모든 URL로 리디렉션됩니다 Htaccess Rewrites
0
쉽게 PHP에 의해 그것을 할 수 있지만 HTML 태그를 열기 전에 두 페이지에서이 코드를 포함해야합니다.
<?php
$useragent=$_SERVER['HTTP_USER_AGENT'];
header('Location: http://example.com/test.php'); ?>
희망이 도움이 될 것입니다!
관련 문제
- 1. URL이
- 2. URL이
- 3. URL이
- 4. URL이
- 5. URL이
- 6. URL이
- 7. URL이
- 8. URL이
- 9. URL이
- 10. URL이
- 11. URL이
- 12. URL이
- 13. URL이
- 14. 캔버스 URL이 유효한 URL이 아닙니다.
- 15. /wordpress/URL이 없으면 URL이 작동하지 않습니다.
- 16. 친절한 URL이
- 17. 리디렉션 URL이
- 18. 어떤 URL이
- 19. htaccess로 URL이!
- 20. 변경 URL이
- 21. URL이/shop/
- 22. ? 및 URL이
- 23. URL이 4.0
- 24. 추출 URL이
- 25. 리디렉션 URL이
- 26. ModRewrite과 URL이
- 27. CNAME URL이
- 28. 합격 URL이
- 29. 상대 URL이
- 30. URL이 제대로