The "Bulk URL Rewriting" application lets you rewrite a URL, replace one URL with another in href="" tags and deploy a 301 redirect on your site by setting up a CSV file. Powerful stuff!
To use Bulk URL Rewriting, follow the steps below.
The url-source column is used to indicate the page to which you wish to apply changes.
The url-source column is mandatory for every row.
What's a "query string"?
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 full definition here: 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-rewrite column is used to indicate the URL that will be used for rewriting.
The url-rewrite column is mandatory for each line.
Examplein 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 feature-rewrite column is used to activate the URL rewriting option of url-source to url-rewrite
The column feature-rewrite column takes the values Y to enable the rewrite option, or N to disable it.
<feature-rewrite> |
---|
Y |
Example of a result with the feature-rewrite column
url-source | url-rewrite | feature-rewrite | feature-replace-url | feature-redirection |
---|---|---|---|---|
https://www.edgeseo.io/toto?querystring=1 | https://www.edgeseo.io/url-sexy | Y | N | N |
In the example, the URL https://www.edgeseo.io/toto?querystring=1 will be rewritten with the URL https://www.edgeseo.io/url-sexy
The column feature-replace-url column is used to activate the url-source with url-rewrite in href="" tags.
The column feature-replace-url column takes the values Y to activate the replacement option, or N not to activate it.
Example in csv file
feature-replace-url |
---|
Y |
Example of a result with the feature-replace-url column
url-source | url-rewrite | feature-rewrite | feature-replace-url | feature-redirection |
---|---|---|---|---|
https://www.edgeseo.io/toto?querystring=1 | https://www.edgeseo.io/url-sexy | N | Y | N |
In the example, we replace the href="" tags in the page source code:
href="https://www.edgeseo.io/toto?querystring=1" by href="https://www.edgeseo.io/url-sexy throughout your site.
The column feature-redirection column is used to activate the 301 redirection option of url-source to url-rewrite
The column feature-redirection column takes the values Y to enable the 301 redirection option, or N to disable it.
Example in csv file
feature-redirection |
---|
Y |
Exemple de résultat avec la colonne <feature-redirection>
url-source | url-rewrite | feature-rewrite | feature-replace-url | feature-redirection |
---|---|---|---|---|
https://www.edgeseo.io/toto?querystring=1 | https://www.edgeseo.io/url-sexy | N | N | Y |
In the example, we're doing a 301 redirect:
https://www.edgeseo.io/toto?querystring=1vers https://www.edgeseo.io/url-sexy