Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何为joomla的“重定向管理器”或.htaccess文件创建一个新的重定向规则,它可以将客人从“something/item/13269248”之类的东西重定向到“somethingelse/item/13269248”但那里有任何ID?
htaccess
Redirect something/item/13269248 somethingelse/item/13269248
如果您遇到任何问题,请告诉我
我找到了答案,你可以这样做:
RewriteRule ^something/item/(.*) /somethingelse/item/$1 [R=301,L,QSA]