Menu

Bulk URL Rewriting

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!

The video tutorial

How do I use Bulk URL Rewriting?

To use Bulk URL Rewriting, follow the steps below.

  1. To access the Bulk URL Rewriting application, connect to our EdgeSEO solution solution, then click on the "Bulk URL Rewriting" application setup button.
  2. If you're using the application for the first time, download the CSV template or duplicate the GoogleSheet template > BULK URL REWRITING tab
  3. If you've already used "Bulk URL Rewriting", 🚨 you'll need to start from your existing file. The "Bulk URL Rewriting" application works with a "cancel and replace" mechanism for the csv file. You can download the file currently in production from the link on the interface.
  4. Fill in the columns of the CSV file with your data. Full details of each column are given below 👇
  5. Upload your file and click on save.
  6. Check that redirects are applied to your urls.

Columns in the "Bulk URL Rewriting" file

url-source

keyboard_arrow_down

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.

url-rewrite

keyboard_arrow_down

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
‍A
valid 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.

feature-rewrite

keyboard_arrow_down

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-sourceurl-rewritefeature-rewritefeature-replace-urlfeature-redirection
https://www.edgeseo.io/toto?querystring=1https://www.edgeseo.io/url-sexyYNN

In the example, the URL https://www.edgeseo.io/toto?querystring=1 will be rewritten with the URL https://www.edgeseo.io/url-sexy

feature-replace-url

keyboard_arrow_down

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-sourceurl-rewritefeature-rewritefeature-replace-urlfeature-redirection
https://www.edgeseo.io/toto?querystring=1https://www.edgeseo.io/url-sexyNYN


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.

feature-redirection

keyboard_arrow_down

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-sourceurl-rewritefeature-rewritefeature-replace-urlfeature-redirection
https://www.edgeseo.io/toto?querystring=1https://www.edgeseo.io/url-sexyNNY


In the example, we're doing a 301 redirect:

https://www.edgeseo.io/toto?querystring=1vers https://www.edgeseo.io/url-sexy