永久(301).htaccess重定向 [英] Permanent (301) .htaccess redirect
本文介绍了永久(301).htaccess重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要从这些页面进行301重定向:
I need a 301 redirect from these pages:
form/5/asd.html
form/5/12dasd.html
form/5/dasidjasd.html
form/5/pasd1.html
始终访问此页面: /form/12/name.html
可以帮我吗,因为我从不理解.htaccess重定向:(
Can you help me, because I never understand .htaccess redirects :(
推荐答案
将RedirectMatch与通配符一起使用,并记住在指定时使用完整的URL重定向到的位置:
Use RedirectMatch with a wildcard, and remember to use the complete URL when specifying where to redirect to:
RedirectMatch 301 /form/5/.* www.example.com/form/12/name.html
这篇关于永久(301).htaccess重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文