# Replace URLs

Elementor Core Advanced

Sites that change the URL, whether migrating to different domain or simple transfering from HTTP to HTTPs, need to update URLs in the database. Elementor has a tool that replaces old URLs with new URLs in all Elementor pages. The Elementor CLI replace-urls command will do exactly that.

# Command

wp elementor replace-urls <old> <new> [--force]
1

# Arguments

<old>

(Required) The old URL.

<new>

(Required) The new URL.

[--force]

(Optional) Suppress error messages.

# Usage Examples

wp elementor replace-urls http://elementor.com https://elementor.com
1

This command will replace all http://elementor.com HTTP URLs with https://elementor.com HTTPS URLs.

wp elementor replace-urls http://elementor.com https://elementor.com --force
1

This command will replace all http://elementor.com HTTP URLs with https://elementor.com HTTPS URLs, without throwing errors.