- 
      
- 
        Save annelyse/bd4828219e0334222a41ac787e5b3480 to your computer and use it in GitHub Desktop. 
    Redirige toutes les urls qui finissent par feed vers leur page
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ## Dans le plugin redirection il est possible de paramétrer les anciens permalink pour les rediriger : | |
| /%post_id%/%postname%/ | |
| ## Pour tester les regex : | |
| https://regexr.com/<br> | |
| ## Redirection de tous les feeds vers l'accueil | |
| ^/(.*)\/feed<br> | |
| https://nomdedomaine.com/$1<br> | |
| ##Rediriger tous les pages <br> | |
| nomdemain.fr/tag/article<br> | |
| part un autre adresse<br> | |
| ^/tag/(.*)<br> | |
| Pour redirige les permaliens: utiliser l'outil redirection de wordpress "permalink option" | |
| Pour rediriger | |
| mon_url/5643/nom_de_l'article | |
| -> mon_url/blog/nom_de_l'article | |
| ## Redirection urls de type : | |
| mon_url/5643/nom_de_l'article<br> | |
| -> mon_url/blog/nom_de_l'article<br> | |
| **utiliser** : <br> | |
| ^/\d{4}/(.*) <br> | |
| nomdemain.fr/blog/$1<br> | |
| ## Redirection cpt : | |
| https://www.nomdedomaine.fr/nos-programmes/nomedelapage <br> | |
| vers https://www.nomdedomaine.fr/programmes-immobiliers/nomedelapage <br> | |
| ^/nos-programmes/(.*) <br> | |
| https://www.nomdedomaine.fr/programmes-immobiliers/$1<br> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment