.htaccess 如何将.htacces重定向到其他别名
如何仅从URL中删除“-home” 发件人:.htaccess 如何将.htacces重定向到其他别名,.htaccess,redirect,.htaccess,Redirect,如何仅从URL中删除“-home” 发件人: https://www.example.com/arbipedia-comentarios-a-lei-de-arbitragem-home/conteudo-exclusivo-arbipedia/1314.html 致: https://www.example.com/arbipedia-comentarios-a-lei-de-arbitragem/conteudo-exclusivo-arbipedia/1314.html您可以使用以下重定向
https://www.example.com/arbipedia-comentarios-a-lei-de-arbitragem-home/conteudo-exclusivo-arbipedia/1314.html
致:
https://www.example.com/arbipedia-comentarios-a-lei-de-arbitragem/conteudo-exclusivo-arbipedia/1314.html
您可以使用以下重定向从uri中删除-home子字符串:
RedirectMatch ^/(.+)-home/(.+)$ /$1/$2
这将重定向到