301从/page

编程入门 行业动态 更新时间:2024-10-18 01:30:20
301从/page-190454.html重定向到/190454.html(301 Redirect from /page-190454.html‎ TO /190454.html‎)

我想重定向我的所有网站链接

来自这个/page-190454.html‎这样的旧链接

到/190454.html这样的新链接

Thnx ......

i want Redirect all my website links

from old links like this /page-190454.html‎

to new links like /190454.html

Thnx ...

最满意答案

使用mod_alias:

RedirectMatch 301 ^/page-([0-9]+)\.html$ /$1.html

或使用mod_rewrite:

RewriteEngine On RewriteRule ^page-([0-9]+)\.html$ /$1.html [L,R=301]

Using mod_alias:

RedirectMatch 301 ^/page-([0-9]+)\.html$ /$1.html

or using mod_rewrite:

RewriteEngine On RewriteRule ^page-([0-9]+)\.html$ /$1.html [L,R=301]

更多推荐

html,page-,Thnx,links,电脑培训,计算机培训,IT培训"/> <meta name="descrip

本文发布于:2023-08-04 11:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1415212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:page

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!