Migrating your WordPress website to new hosting, or setting up redirects, is a common practice for those who are having issues with their hosting provider or with their website structure.

These are the two scenarios where you will need to export the URLs from WordPress.

Fortunately, there are a number of plugins and tools to help you do this. easily work. In this tutorial, we'll explain why you would need to export your URLs, but also we'll show you how to do it using two different methods.

But before, let's discover together How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog.

Then, back to why we are here.

What are the WordPress URLs that you will need to export

For the uninitiated, WordPress URLs (also called "permalinks") are the unique links to your content, and their placement provides a number of search engine optimization and SEO benefits.

Also discover our guide on How to customize your blog links

In addition, WordPress is more than just a powerful content management system (CMS). It also comes with a toolkit that lets you accomplish maintenance-related tasks without having to enter a single line of code - including exporting your URLs from WordPress.

So why would you need to export your website URLs?

There are a number of scenarios where you will need a full list. For example :

  • During the migration of your WordPress website: If you want to migrate your website without affecting your SEO, you need to update the URLs in advance.
  • While moving your website from a local installation to an online website : When launching your website, you may need to modify your URLs to reflect your new domain.
  • Setting up redirects: If you want traffic from one page to be sent to another, you will need to redirect your WordPress URLs with new links.
  • Share URLs with your SEO team: This is common practice, and you may need to update your URL structure accordingly. This is often the case with the implementation of monitoring with monitoring tools. SEO.

With this brief overview of the road, we'll dive right into the tutorial! We'll start by showing you the process of exporting WordPress URLs using a plugin (with ease), we will also show you how you can do the same thing manually (hard).

How to export WordPress URLs with a plugin

It is always better to make a backup of your website before any modification of it. In this way, if the worst happens, you can almost instantly revert to an old version, by restoring it.

export-all-urls-on-wordpress

Once you have completely backed up your website, you need to install Export All URLs plugin an appropriate plugin (that we will use to export URLs). This plugin offers a quick and easy solution to extract URLs, titles and categories from your articles and pages.

For our purposes, we are only interested in exporting WordPress URLs.

If you've never used WordPress, Discover how to install a plugin on WordPress

Export to CSV format

The format " Comma Separated Values "(CSV) is typically used to store information in tabular form. This data is usually exported to a spreadsheet file (Like Microsoft Excel) With one record per line.

See also How to export user data to a CSV file

CSV files should be used when you already understand the structure of your data. In this case, we know that we are only exporting URLs from WordPress, which makes exporting in CSV format more suitable. Here are some additional benefits:

  • CSV is human readable.
  • The format is easy to edit and edit manually.
  • Almost all existing applications support the CSV file format.

How to export your URLs to CSV

First, log into your WordPress website's admin panel, then navigate to " Settings> Settings> Export All URL ". On the screen that appears, select the following options:

  • Select a Post Type to Extract Date : All Type (pages, posts, and custom post types) 
  • Additional Data  : url.
  • ExportType : CSV.

Finally, click the button Export, to export URLs in CSV format:

Export-of-data-wordpress

Once exported, a notification will be displayed with a link to download the data. Once you download the file, it will display the list of URLs for your website.

Export to plain text

Plain text is simply a format that has no tags or special formatting (it's data that is not code).

See also How to add link preview on WordPress

The obvious advantage of exporting to plain text is that it's incredibly easy for humans to read, especially when offered as an HTML or XML file. Apart from that, there are a few other reasons why you might want to export as plain text:

  • The plain text does not require any specific software to modify its content.
  • It's robust against data corruption.
  • It allows different programs to access each other's files.

How to export your URLS in plain text format

Likewise for the export in CSV format, connect to the administration panel of your WordPress website, then navigate to " Settings> Export All URL ". On the next screen, select the following options:

  • Select a Post Type to Extract Date : All Type (pages, posts, and custom post types) 
  • Additional Data  : url.
  • ExportType :OutputHere.

Finally, click the button Export, to export URLs in CSV format:

Export-in text-mode-simple-wordpress

Once exported, the URLs will be displayed below your settings, where you can copy and paste it into your favorite text editor.

How to export WordPress URLs manually

Although using a plugin gives good results, you can export your URLs manually (which will save you potentially large resources). For this method, you will need an FTP client to transfer data, or use the resource manager in cPanel.

If you are a new FTP user, we have a tutorial to get you started. Don't forget to create a backup of your site before you start!

See also How to use FTP on Windows 10

All you need to do is paste the following code into a text editor:

include "wp-load.php"; $ posts = new WP_Query ('post_type = any & posts_per_page = -1 & post_status = publish'); $ posts = $ posts-> posts; header ('Content-type: text / plain'); foreach ($ posts as $ post) {switch ($ post-> post_type) {case 'revision': case 'nav_menu_item': break; case 'page': $ permalink = get_page_link ($ post-> ID); break; case 'post': $ permalink = get_permalink ($ post-> ID); break; case 'attachment': $ permalink = get_attachment_link ($ post-> ID); break; default: $ permalink = get_post_permalink ($ post-> ID); break; } echo "n {$ permalink}"; }

Once it's done, save your file and send it to your server. From there, all you have to do is go directly to this file. If the file is named " export.php », You will access this file as follows: http://exemple.com/export.php.

And you will be able to see the different URLs.

Also discover some additional premium WordPress plugins 

You can use other plugins to display countdowns on your WordPress blog. In what follows, I propose some of them.

1. WordPress PDF Viewer and Embed Plugin

Ce WordPress Plugin comprehensive PDF management tool will help you upload any PDF file not only from your device, but also to import it via URL. It offers you two display modes, full-width mode and full integration on your website.

Dk pdf generator

Its many options for customizing page width and height, the start page, and viewing control of the PDF reader toolbar give you everything you need to share PDF files on your computer. website.

Download | Demo | Web hosting

2. WordPress Video Gallery

WordPress Video Gallery is a very impressive video gallery plugin; just what is needed for your website. It is powerful, responsive, fast, and at the cutting edge of technology. However, this plugin is mainly distinguished by the fact that it is highly customizable. 

Video gallery wordpress plugin

So you have 5 different styles to match any branding image. And if that's not enough for you, you can generate your own style and color schemes. 

See also How to Create a Photo Gallery on Your WordPress Blog

With WordPress Video Gallery, enjoy multiple video galleries in one. Indeed, the plugin sets up a gallery that broadcasts its content from several other galleries. For example, you can create a gallery combined with a Vimeo channel + a YouTube playlist + some of your own videos.

Download | Demo | Web hosting

3. Testimonials Slider

Le WordPress Plugin premium Testimonial Slider is a simple tool to display your customer testimonials on your website in the most vivid and attractive way.

Testimonials slider wordpress testimonials plugin

You will have the option to use it to collect any type of testimonial along with the author's name, author's photo, company logo, and even a client's website URL.

Check out this article on How to update your WordPress themes bought on Themeforest

This presentation will increase the credibility of your product or services at the same time as the user experience. So use this WordPress Plugin and strengthen your reputation with real and sincere testimonials.

Download | Demo | Web hosting

Recommended Resources

Find out about other recommended resources to help you build and manage your website.

Conclusion

Here is ! That's it for this guide which shows you how to export WordPress URLs in two methods. If you have any questions, do not hesitate to ask them.

However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation.

Feel free to share this article with your friends on your favorite social networks. But, in the meantime, tell us about your Comments and suggestions in the dedicated section.

...