如何重寫URL所以當我的球員JW通過接入鏈路(http://www.example.com/download.php/video.mp4)的文件,它實際上訪問http://www.example.com/download.php?重寫URL(的download.php/video.mp4到的download.php)
-1
A
回答
0
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule download\.php/(.*) /download.php?file=$1 [L,QSA]
0
這是您需要在網絡服務器級別配置的東西。
如果你在一個Apache網絡服務器上,請檢查mod_rewrite。 http://httpd.apache.org/docs/current/mod/mod_rewrite.html
相關問題
- 1. htaccess重定向download.php?fid = ##
- 2. URL重寫舊的URL到新的URL
- 3. Http到https的URL重寫
- 4. 國防部重寫URL重寫到更清潔的URL .htacess
- 5. .htaccess重寫/ ...到/?url =
- 6. 重寫URL到短
- 7. 將重寫的URL重定向到一個新的重寫的URL
- 8. 重定向或重寫URL到新的
- 9. 重定向到重寫的URL問題
- 10. 301重定向到URL重寫.htaccess的
- 11. mod_rewrite的 - 力重定向到重寫URL
- 12. 重定向到一個重寫的URL
- 13. htaccess的URL重寫URL multple
- 14. URL重寫假的URL
- 15. AJAX的URL與URL重寫
- 16. htaccess的URL重寫URL
- 17. URL重寫 - URL
- 18. 重寫規則爲舊的URL重定向到新的URL
- 19. URL htaccess的重寫
- 20. Magento的URL重寫
- 21. 重寫URL DNN的
- 22. WordPress的重寫URL
- 23. DomainName.com的URL重寫
- 24. URL重寫.NET的
- 25. htaccess的重寫URL
- 26. Nginx的URL重寫
- 27. Nginx的URL重寫
- 28. URL重寫的笨
- 29. 重寫URL的笨
- 30. URL重寫的Servlet