开发者

rewrite and redirect

开发者 https://www.devze.com 2023-01-19 07:33 出处:网络
hi i just applied a new url structure to my site the links were like this before using rewrite mod /detail.php?id=123

hi i just applied a new url structure to my site the links were like this before using rewrite mod /detail.php?id=123 and after /restaurant123.htm

but the problem is /detail.php?id=123 still work and i've spent a week to do something to redirect /detail.php?id=123 to /restaura开发者_StackOverflow社区nt123.htm without an infinite loop and i searched all over the internet but couldn't fix it any idea? thanks


I think you forget the [L] flag in the RewriteRule of your .htaccess

Can we see your .htaccess ?

0

精彩评论

暂无评论...
验证码 换一张
取 消