Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Remove installation subfolder from file paths

Discussion in 'Misc WordPress Requests' started by Firoz, Nov 6, 2017.

  1. Firoz

    Guest

    Reply To: Remove installation subfolder from file paths, by Firoz

    Have you replace all the sql entries with new URL?

    Run following sql queries. Replace yoursite.com with your actual site name

    UPDATE wp_options SET option_value = REPLACE(option_value, 'http://yoursite.com/wp2017', 'https://yoursite.com') WHERE option_name = 'home' OR option_name = 'siteurl';
    UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://yoursite.com/wp2017', 'https://yoursite.com');
    UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://yoursite.com/wp2017','https://yoursite.com');
    UPDATE wp_comments SET comment_content = REPLACE (comment_content, 'http://yoursite.com/wp2017', 'https://yoursite.com');
    UPDATE wp_comments SET comment_author_url = REPLACE (comment_author_url, 'http://yoursite.com/wp2017','https://yoursite.com');
    UPDATE wp_posts SET guid = REPLACE (guid, 'http://yoursite.com/wp2017', 'https://yoursite.com') WHERE post_type = 'attachment';


    Refer this site for detail.

    Reply To: Remove installation subfolder from file paths
     
    #1

Share This Page

Web Hosting