The "Bulk Redirection" application lets you deploy 301,302,307,308 redirects on your site by setting up a CSV file. If you're not familiar with the .htaccess file, you'll love it đ.
To use Bulk Redirection, follow the steps below.
La colonne <url-source> permet dâindiquer la page sur laquelle vous souhaitez appliquer des modifications.
La colonne <url-source> est obligatoire pour chaque ligne.
Nous attendons une url valide qui répond avec un statut code 200 dans la colonne
âCâest quoi une « query string » ?
âUne "query string" est une partie de l'URL contenant des paramĂštres sous la forme clĂ©=valeur, comme dans https://exemple.com/page?clĂ©1=valeur1&clĂ©2=valeur2.Vous trouverez une dĂ©finition complĂšte ici : https://fr.wikipedia.org/wiki/ChaĂźne_de_requĂȘte
Below are some examples of URLs that will return an error:
â
â www.edgeseo.io â The https:// or http://
protocol is missing â edgeseo.io â The https:// or http://
protocol is missing â /blog â The https:// or http:// protocol and the full domain are missing.
The url-destination column is used to indicate the page to which you wish to apply modifications.
The url-destination column is mandatory for each line.
We expect a valid url that responds with a status code 200 in the column
âExamplein the csv file
âAvalid URL must be structured with the protocol (http:// or https://) followed by the full domain.
Below are some examples of URLs that are valid:
<url-destination> |
---|
https://www.edgeseo.io/ |
https://edgeseo.io/ |
https://www.edgeseo.io/blog |
https://www.edgeseo.io/blog?param=1 |
Below are some examples of URLs that will return an error:
â
â www.edgeseo.io â The https:// or http://
protocol is missing â edgeseo.io â The https:// or http://
protocol is missing â /blog â The https:// or http:// protocol and the full domain are missing.
The column code column is used to indicate the "status code" to be applied to the redirection
The code column is mandatory for each line.
Example in csv file
code |
---|
301 |
Focus on redirection status
301: Permanent redirection, indicating that the resource has been permanently moved to a new URL.
302: Temporary redirection, indicating that the resource is temporarily available at a new URL.
307: Temporary redirection that preserves the HTTP method, similar to 302 but without changing the method.
308: Permanent redirection that preserves the HTTP method, generally used for forms.
â
The regex column indicates that we are using REGEX in the url-source and/or url-destinationâ
The regex column can take the values "Y" if you want to use REGEX or "N" if you don't.
The regex column is mandatory. By default, if you do not use a REGEX, enter "N".
Example in csv file
regex |
---|
Y |
Exemple de résultat avec la colonne <preserve-query-string>
url-source | url-destination | code | regex | preserve-query-string |
---|---|---|---|---|
https://www.edgeseo.io/toto?querystring=1 | https://www.edgeseo.io/ | 301 | Y | Y |
The column preserve-query-string column is used to indicate that we want to preserve the URL query strings in the url-source and/or url-destination
The column preserve-query-string column can take the values "Y" if you wish to preserve the query string, or "N" if you don't.
The column preserve-query-string column is mandatory. By default, if you don't want to preserve the query string of the URL, enter "N".
preserve-query-string |
---|
Y |
Exemple de résultat avec la colonne <preserve-query-string>
url-source | url-destination | code | regex | preserve-query-string |
---|---|---|---|---|
https://www.edgeseo.io/toto?querystring=1 | https://www.edgeseo.io/ | 301 | N | Y |
Une REGEX, expression réguliÚre, est une séquence de caractÚres formant un motif de recherche, comme \d{3} pour trouver trois chiffres consécutifs.Vous trouverez une définition complÚte ici : https://fr.wikipedia.org/wiki/Expression_réguliÚre
A "query string" is a part of the URL containing parameters in the form key=value, as in https://exemple.com/page?clĂ©1=valeur1&clĂ©2=valeur2.Vous Find a complete definition here: https://fr.wikipedia.org/wiki/ChaĂźne_de_requĂȘte