htaccess redirect links with   characters

前端 未结 1 1111
自闭症患者
自闭症患者 2021-01-25 16:41

I want to redirect links containing characters like %C2%A0 on my htaccess file example:

redirect 301 /actualite/presses-plieuses-electriques%C2%A0-l         


        
1条回答
  •  -上瘾入骨i
    2021-01-25 16:42

    You can use this RewriteRule rule:

    RewriteEngine On
    
    RewriteRule ^actualite/presses-plieuses-electriques\xC2\xA0-les-5-criteres-de-choix_343\.html$ / [L,NC,R=301]
    

    Note use of \xC2\xA0 for %C2%A0

    0 讨论(0)
提交回复
热议问题