是我浏览时使用htaccess的重定向 我的example.net/video/1,然后将我重定向到example.net/abc/redirect.php
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{Request_URI} /picture?$
RewriteRule ^ http://example.net/abc/redirect.php [L,R=301]
呃,如果我需要类似的东西......当我通过这个链接浏览时
http://example.net/picture/1
或http://example.net/picture/2
它会将我重定向到包含查询字符串的链接,如
http://example.net/abc/redirect.php?picture=1
http://example.net/abc/redirect.php?picture=2
谢谢! :)
答案 0 :(得分:0)
RewriteRule ^picture/([\d]+) /redirect.php?picture=$1 [L,R=301]