简体   繁体   中英

wordpress site domain open the old site domain

old path

testing path

i uploaded my complete wordpress project in test folder my new wordpress site path like this when i open this url site opened perfectly

when i click on any navigation link page opened and urls show me this

http://www.tantifilm.top/serie-tv/ link instead of this http://www.tantifilm.top/test/serie-tv/

siteurl   : http://www.tantifilm.top/test/
baseurl   : http://www.tantifilm.top/test/

i import the database and update the link in wp_option i dont understand why http://www.tantifilm.top/test/serie-tv/ this link not open

Try this on your databse (sql):

//SQL to change domain name
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com'); 
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); 
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://www.old-domain.com', 'http://www.new-domain.com'); 
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

And then go to the WordPress backend, "Settings" -> "Permalinks" and click "Save Changes".

I hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM