change wordpress site url


you can change WordPress domain name by two easy ways.

From WordPress dashboard

WordPress dashboard>>general settings>> WordPress site Address & Site URL Replace with New domain.

Then Theme & some installed files with Old domain May load perfectly. then Login to WordPress dashboard again.

install better search replace plugin and replace old domain with the new domain but carefully because you cannot revert back.

Now your New website loads perfectly.

from PHPMyAdmin or database

You may also change WordPress site URL from phpmyadmin. if you unable to login to WordPress dashboard.

Databse>>wp-options table>> site address first line>> change it to your new domain.



You can also change domain name wp-config.php

add this code above that’s al;l stop editing.


If you theme components not loading then add the below to your active theme function.php


or you can activate new and reactivate existing one can also helps to fix the problem.



and theme functions php



you have to remove it once it worked properly.

Troubleshooting  redirect loops by .htaccess


In case of SSL domain


.htraccess looks like

RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [R,L]


this causes redirect loops.

replace with your domain.


on previous website directory, Add a 301  redirect code in thaccess


simple code Redirect 301 /

wildcard redirect


Use Permalink finder Plugin wf wildcard redirection not works.


Install better search replace Plugin: to change old URL to New URL In database:

Remove w3total cache plugin define in wp-config.php


more details on WordPress .


Change site Address In webmaster Tools/console


Site>>Settings>>chagesite Address>> check for 301 redirection and apply changes.

is this really helpful or not.