I am basically just trying to write a .htaccess redirect that turns the url
我基本上只是想编写一个转换网址的.htaccess重定向
www.example.com/Artist/Profile?Artist='test'
to www.example.com/Artist/test
www.example.com/Artist/Profile?Artist='test'到www.example.com/Artist/test
without actualy redirecting the user.
没有实际重定向用户。
1 个解决方案
#1
1
use the following directive
使用以下指令
RewriteCond %{QUERY_STRING} (^|&)artist='([^&]+)' [NC]
RewriteRule ^Artist/Profile$ /Artist/%2? [L,NC]
#1
1
use the following directive
使用以下指令
RewriteCond %{QUERY_STRING} (^|&)artist='([^&]+)' [NC]
RewriteRule ^Artist/Profile$ /Artist/%2? [L,NC]