1
如果URL匹配定義的字符串我想重定向URL是否匹配定義在一行代碼重定向使用的.htaccess
如果URL是
- http://example.com/mobiles/xyz/
- http://example.com/computers/xyz/ 使用的.htaccess串
- http://example.com/books/xyz/
重定向URL
我試過,但我想定義字符串(例如。圖書,手機,書籍),而不是(*)
RewriteRule ^(.*)/xyz/?$ upcoming/index.html [NC,L]