Guides/Create content/Media/Manage file links and URLs

Manage file links and URLs

Last reviewed on August 26, 2025

When you upload a file (such as an image, video, audio, or document) to your site’s Media Library, a unique URL (also called a link or path) is created. This guide explains how file URLs are structured and how to find them.

File URL structure

When you upload a file to your site’s Media Library, a unique URL (also called a link or path) is created. This URL consists of the following elements:

  • Your site’s primary address.
  • The media directory (usually wp-content/uploads).
  • The date the file was uploaded.
  • The name you gave the media file.

For example, https://yourgroovysite.com/wp-content/uploads/2023/01/mygroovyfilename.jpg.

Find a file’s URL

Every image, video, audio file, and document has a unique URL (also called a link). Follow these steps to find the URL:

  1. Visit your site’s dashboard and navigate to Media.
  2. Click on the media file you want to access.
  3. Locate the File URL box.
  4. Click the “Copy URL to clipboard” button next to the link to copy the URL to your clipboard so you can paste/share the media elsewhere.
A box drawn around the button labeled "Copy URL to clipboard"

Change a file’s URL

Once you upload a media file to your Media Library, you cannot directly change the file’s name. However, you can rename the file on your computer and re-upload it to your site’s media. Remember to replace the file wherever you have added it before deleting the original.

If you don’t have the original file on your computer, visit your site’s Media to download the file you want to change the name of.

Reuse a file’s URL

Every file name on WordPress is unique. If you upload a new version of an image or other media item with the same file name, a number will be added to the end of the file name; for example: mygroovyfilename-1.jpg.

However, if you want to replace a file and keep the same URL, you have a couple of options:

Add the file to a page or post

If you require an unchanged link for sharing purposes, insert the file onto a page so that you can share the same page URL while replacing the media item as often as needed. Follow these steps to create a page for your file:

  1. In your site’s dashboard, navigate to Pages or Posts to create or edit a page or post.
  2. Insert the media file, using the appropriate type of block:
  3. Publish your content, and share the page or post.

Replace a file with a redirect

On plugin-enabled sites, follow these steps to set up a redirect from the old filename to the new one:

  1. Visit your Sites list and click the site you need to manage.
  2. Select the Settings tab.
  3. In the Server settings section, click “Handling requests for non-existent assets”.
  4. Select the “Delegate to WordPress” option and click the Save button.
The "Delegate request to WordPress" option selected under "Handling requests for nonexistent assets" in the server settings.
  1. Next, install a redirection plugin and set up a redirect from the old file to the new file’s URL.

On plugin-enabled sites, there are also third-party plugins that can replace media files that use the same file name.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!