• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / wordpress tutorials for beginners advanced complete guide to run WordPress / change wordpress site url internal links in mysql command phpmyadmin

change wordpress site url internal links in mysql command phpmyadmin

 

you can change WordPress domain name by two easy ways.

Table of Contents

Toggle
  • change WordPress site url From WordPress dashboard
  • change WordPress site URL PHPMyAdmin or database
  • You can also change domain name wp-config.php
  • Change WordPress URL & 301 Redirection Nginx

change WordPress site url From WordPress dashboard

  1. WordPress dashboard>>general settings>> WordPress site Address & Site URL Replace with New domain.
  2. Then Theme & some installed files with Old domain May load perfectly. then Login to WordPress dashboard again.
  3. install better search replace plugin and replace the old domain with the new domain but carefully because you cannot revert back.
  4. Now your New website loads perfectly.

change WordPress site URL 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.

 

define(‘WP_HOME’,’http://employmentnewsdaily.in’);
define(‘WP_SITEURL’,’http://employmentnewsdaily.in’);

and theme functions php

<?php
update_option(‘siteurl’,’http://example.com’);
update_option(‘home’,’http://example.com’);
?>

 

you have to remove it once it worked properly.

Troubleshooting  redirect loops by .htaccess

 

WordPress URL  Apache 301 redirection Rule

.htraccess looks like

http to https

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

 

  1. NOTE: this cause redirect loops.
  2. replace with yourdomain.com.
  3. on previous website directory, Add a 301  redirect code in haccess
  4. simple code Redirect 301 / https://ur.com
  5. wildcard redirect
  6. Use Permalink finder Plugin wf wildcard redirection not works.
  7. Install better search replace Plugin: to change old URL to New URL In database:
  8. Remove w3total cache plugin define in wp-config.php
  9. 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.

 

Change WordPress URL & 301 Redirection Nginx

WP UR Change at cloud Server with Nginx

WordPress dashboard>>general settings>> WordPress site Address & Site URL

301

301 Redirection use in the same file

server {

listen 80;

server_name www.domain.comdomain.com;

return 301 http://NewDomain.Com$request_uri;

}

  1. internal links change  with Better search replace plugin

 

really need to care when replacing DB
we cannot revert changes unless backup.

 

site change wordpress url

post content

UPDATE `2xpwp_posts` SET `post_content` = REPLACE(`post_content`, 'sarkariresultpro.in', 'sarkariresultz.in') WHERE `post_content` LIKE '%sarkariresultpro.in%' COLLATE utf8mb4_bin;

if there maybe a syntax errors  manually type this ‘ incase of error

UPDATE `zx2wp_options` SET `post_content` = REPLACE(`post_content`, ‘test.sarkariresultpro.in’, ‘sarkariresultpro.in’) WHERE `post_content` LIKE ‘%test.sarkariresultpro.in%’ COLLATE utf8mb4_bin;

 

<td>2022</td>

UPDATE `2xpwp_posts` SET `post_content` = REPLACE(`post_content`, ‘<td>2022</td>’, ‘<td>2023</td>’) WHERE `post_content` LIKE ‘%<td>2022</td>%’ COLLATE utf8mb4_bin

 

UPDATE `2xpwp_posts` SET `post_content` = REPLACE(`post_content`, ‘%<h2>FAQs on’, ‘ ‘) WHERE `post_content` LIKE ‘%<h2>FAQs on’ COLLATE utf8mb4_bin

 

UPDATE `2xpwp_posts` SET `post_title` = REPLACE(`post_title`, ‘2022 ‘, ‘2023 ‘) WHERE `post_title` LIKE ‘%2021 %’ COLLATE utf8mb4_bin

 

 

UPDATE `wp_h738tjtp6a_posts` SET `post_content` = REPLACE(`post_content`, ‘2021’, ‘2022’) WHERE `post_content` LIKE ‘%2021%’ COLLATE utf8mb4_bin

 

UPDATE `2xpwp_posts` SET `post_content` = REPLACE(`post_content`, ‘2021’, ‘2022’) WHERE `post_content` LIKE ‘%2021%’ COLLATE utf8mb4_bin

 

post content

UPDATE `2xpwp_posts` SET `post_content` = REPLACE(`post_content`, ‘2022 ‘, ‘2023 ‘) WHERE `post_content` LIKE ‘%2022 %’ COLLATE utf8mb4_bin

 

no spaces

UPDATE `zx2wp_posts` SET `post_content` = REPLACE(`post_content`, ‘2022’, ‘2023’) WHERE `post_content` LIKE ‘%2022%’ COLLATE utf8mb4_bin;

 

post_title

 

 

UPDATE `2xpwp_posts` SET `post_title` = REPLACE(`post_title`, ‘2022 ‘, ‘2023 ‘) WHERE `post_title` LIKE ‘%2022 %’ COLLATE utf8mb4_bin

 

UPDATE `2xpwp_posts` SET `post_content` = REPLACE(`post_content`, ‘jobs 2022’, ‘jobs 2023 ‘) WHERE `post_content` LIKE ‘%jobs 2022%’ COLLATE utf8mb4_bin

 

Primary Sidebar

wordpress tutorials for beginners advanced complete guide to run WordPress

  • wordpress speed optimization Speed up wordpress Score on Google pagespeed
  • best wordpress plugins social, seo, Backup, speed up your blog
  • TOP 10 Wordpress Themes Premium/ Free & providers
  • Wordpress Adsense Plugins & Manually
  • Social share buttons for website Wordpress Blogger
  • How to bulk delete in wordpress posts, pages, Media Images, tags and categories
  • TOP 5 Best wordpress comment plugins 2020 (disable pingback, replytocom, customize form)
  • all in one seo pack vs yoast seo pressor
  • Auto post to Facebook, twitter, Google Plus Wordpress Posts 2019
  • wordpress plugins that slow down your site and its alternatives
  • How to use wordpress tags and categories
  • Wordpress duplicate thin content Issues {FIXED}
  • how to increase wordpress memory & file upload size
  • combine rss feeds wordpress
  • Reduce the impact of third-party code ,optimize JS delivery, Minify, remove unused js, pre connect, inline, lazy load etc
  • change wordpress site url internal links in mysql command phpmyadmin
  • install wordpress on ubuntu nginx lemp command line apache debian
  • Wordpress Security Plugins 2021 (Brute force, Login lockdown, Malware scanner etc)
  • website cache best caching plugins wordpress w3tc cloudflare
  • How to add adsense amp ads to wordpress
  • wordpress password reset in 3 ways mail, phpmyadmin, mysql command
  • how i recovered hacked website site 5 times ft wordpress?
  • wordpress redirection examples Rankmath seo
  • enable browser caching in wordpress apache nginx caching headers explained
  • W3TC w3 total cache plugin setup guide review comparison with wp rocket and wp super cache
  • Wordpress database optimization (don't neglect) plugins & phpmyadmin manually
  • Optimize css delivery inline critical css, remove unused css, render blocking css
  • Converting WordPress into static website speed after 1 second dynamic 3 seconds
  • Wordpress errors and fix
  • Rules to get 100/100 in Google pagespeed web core vitalsscore
  • Install xamp & wordpress on localhost windows
  • favicon ico Change / Add / Disable favicon in wordpress Ft Genesis Theme or any theme
  • increase wordpress memory limit (how to ) 40MB , 64 MB 128 MB or 512 MB maybe 1024MB
  • wp cron job check working or not disable enable change schedule
  • google analytics plugins for wordpress #sitekit #monsterinsights gadwp back as gainwp
  • Lazy Load Adsense to improve core web vitals - Vs revenue
  • xmlrpc php wordpress uses, disable without 403 error log message
  • wordpress 304 header implement using plugin
  • wordpress change post date programmatically (auto on update like blogger
  • sorry you are not allowed to access this page. admin WordPress options table
  • clone wordpress in linux ubuntu server lemp nginx
  • Cloudflare cache rules for WordPress along with page rules cache level everything
  • wordfence-waf.php fatal error fixed after migration
  • Cloudflare page rules cache level everything redirect and sub domain
  • wordpress delete all posts from database mysql query for phpmyadmin
  • php fpm oom killer problem how to dig it.. memory pool and execution time
  • nginx wordpress multisite subdirectory multiple domains
  • Helpful Content update recovery Trying to dig it
  • How to Move a Single WordPress Site into a Multisite
  • Enable multisite in wordpress in 3 steps problems datbase error
  • Seprate single site from wordpress multisite domain based
  • Error establishing a database connection wordpress multisite
  • Add single wordpress to MultiSite wordpress
  • genesis theme cateogory customization examples
  • could not insert term into the database. wordpress
  • wordpress breadcrumbs not showing full path
  • There has been a critical error on this website fed up
  • Site structure WP categories vs sub pages or multisite posts or pages
  • WordPress pyramid structure Permalinks Category vs sub pages vs multisite

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy