Reputation: 161
I have change the directory of my wordpress project from
/root/demoweb/web to /root
but index page still redirecting to old one.
I have changed the .htaccess configurations and settings/ general admin settings also.
what should i do ?
Upvotes: 0
Views: 70
Reputation: 1
Database needs changes,follow the steps
enjoy the website :-)
Upvotes: 0
Reputation: 2675
This is the queries I usually perform (of course replace the value old_url and new_url by yours):
UPDATE wp_options SET option_value = replace(option_value, 'old_url', 'new_url') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'old_url', 'new_url');
UPDATE wp_posts SET post_content = replace(post_content, 'old_url', 'new_url');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'old_url', 'new_url');
Then checking if there is a redirect in .htaccess.
Then accessing the admin URL by going to my new_url/wp-admin/ and regenerating the permalinks (Settings > Permalinks, and click save changes).
Upvotes: 2
Reputation: 1
you have to change root path in your apache server file which is apache.conf .
Upvotes: -1