编写 htaccess 重写规则
Writing htaccess rewrite rules
我需要帮助来制定这个 htaccess 重写规则
假设我有这个 url http://test.com/new.php?code=6789767897879&channel=1432
我需要http://test.com/live/6789767897879/1432.m3u8代码和频道号可变
到目前为止,我试过了,但没有成功,但它一直提示我找不到页面。
RewriteEngine On
RewriteBase /
RewriteRule ^/live/(.*)/(.*)?$ /new.php?code=&channel=
对不起,我是初学者。任何努力都会受到赞赏。再次感谢
您能否尝试使用您展示的示例进行跟踪、编写和测试。请确保在测试您的 URL 之前清除浏览器缓存。
RewriteEngine ON
RewriteRule ^live/([^/]*)/([^.]*)\.m3u8/?$ new.php?code=&channel= [NC,L]
我需要帮助来制定这个 htaccess 重写规则
假设我有这个 url http://test.com/new.php?code=6789767897879&channel=1432
我需要http://test.com/live/6789767897879/1432.m3u8代码和频道号可变
到目前为止,我试过了,但没有成功,但它一直提示我找不到页面。
RewriteEngine On
RewriteBase /
RewriteRule ^/live/(.*)/(.*)?$ /new.php?code=&channel=
对不起,我是初学者。任何努力都会受到赞赏。再次感谢
您能否尝试使用您展示的示例进行跟踪、编写和测试。请确保在测试您的 URL 之前清除浏览器缓存。
RewriteEngine ON
RewriteRule ^live/([^/]*)/([^.]*)\.m3u8/?$ new.php?code=&channel= [NC,L]