[英]Url Rewriting Codeigniter
I want to rewrite 我想改写
http://xxx.tld/member/profile/PARAMETER
to 至
http://xxx.tld/PARAMETER
How is this done in Codeigniter? 如何在Codeigniter中完成?
To rewrite use: 重写使用:
RewriteRule ^member/profile/PARAMETER$ /PARAMETER?&%{QUERY_STRING}
To redirect use: 要重定向使用:
Redirect 301 http://xxx.tld/member/profile/PARAMETER http://xxx.tld/PARAMETER
or try: 或尝试:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^member/profile/PARAMETER(.*)$ http://xxx.tld/PARAMETER$1 [r=301,nc]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.