

Say that you for example have set in your DNS that the domain should always redirect from to If you then have set the domain in Wordpress settings to just - then Wordpress will always try to redirect Fix this by aligning the two settings so that there is no conflict anymore. Wordpress redirects colliding with DNS settingsĪs Wordpress likes to redirect to the website address set in its settings, this can conflict with other things such as redirects on the DNS level.
#Direct url to wordpress update#
More information on various other ways to update site URL’s can be found here: You can update the site url in the Wordpress dashboard settings (if you have access) or in the wp-config file, or directly in your database by hand (although this may result in errors if you are modifying certain tables) This will work for sites that do not use plugins that reference the site url in their own data / settings and may work fine for you. However, you can also try to just tell the Wordpress core what the new website URL is. We recommend using wp-cli as then you can be sure that all references to your old website address are updated in a safe manner. # sudo wp search-replace '' '' -skip-columns=guid Updating the Site URL without using WP-CLI In some cases you may need to include the part if you are switching from a non-ssl enabled website to Webdock, which is always SSL enabled, then the command would become: This will also fix any plugins or other components which may have written absolute URL’s to the database. Where v is your old domain and is your new one. # sudo wp search-replace 'v' '' -skip-columns=guid Once WP-CLI is installed, you can simply run the following command on the command line, and you should be good to go (change your working directory to your web root first, this is typically /var/www/html): Installing WP-CLI (official guide) Updating the Site URLĪlthough these WP-CLI commands should be safe to run, please create a database backup or perform a snapshot in Webdock in case something goes wrong.
#Direct url to wordpress install#
If you need to manually install WP-CLI - take a look here: If you have just migrated your Wordpress site to Webdock, once WP-CLI has been installed, you would then just click on the “Save path” button below the Wordpress is already installed section. If you installed Wordpress using Webdock, then you have already done this in the initial setup of Wordpress.

If your website is on a Webdock server this is really easy: You start by going to Manage Wordpress and simply click the button to deploy WP-CLI to your server. WP-CLI is a tool which helps you (and the Webdock backend) interact with your Wordpress installation, The benefit of using WP-CLI is that you make sure that all plugins which may reference your old website address get updated as well as the Wordpress core Installing WP-CLI In order to update your Wordpress site url, Webdock has a tool called wp-cli which can help you with this task quite easily. Scroll down to the DNS section in this article for possible solutions. If you haven't changed your website address and are seeing redirect issues, the problem is most likely at the DNS level. This only applies if the domain name of your website has changed. This typically fixes the redirect loop problem. your domain name - you need to let Wordpress know what its new website address is. If you are changing your Wordpress website address, i.e. Let Wordpress know what the correct Site URL is This article outlines various ways of fixing these issues.

This can result in infinite redirect loops where you get a browser error along the lines of "Too many redirects"Īnother problem you may encounter is that your Wordpress site is redirecting you to an old website address. Also, some plugins may save the entire website URL of your site for links (some menu plugins do this for example) Wordpress really wants to redirect visitors to whatever address is set in Wordpress settings.
