Here are the step-by-step instructions to move your WordPress site to a new location on the same server:
- Create the new location using one of these two options:
- If you will be moving your WordPress core files to a new directory, create the new directory. (in my case , i made a folder named ‘kombat’ in www directory of wamp server)
- If you want to move WordPress to your root directory, make sure all index.php, .htaccess, and other files that might be copied over are backed up and/or moved, and that the root directory is ready for the new WordPress files.
- Log in to your site.
- Go to the Administration > Settings > General panel.
- In the box for WordPress Address (URL): change the address to the new location of your main WordPress core files. (e.g. http://localhost/kombat)
- In the box for Site Address (URL): change the address to the new location, which should match the WordPress (your public site) address. (e.g. localhost/kombat)
- Click Save Changes.
- (Do not try to open/view your site now!)
- Move your WordPress core files to the new location. This includes the files found within the original directory, and all the sub-directories, to the new location.
- Now, try to open your site by going to yourdomain.com/wp-admin. Note, you may need to go to yourdomain.com/wp-login.php (e.g. i visited localhost/kombat )
These steps were enough for me. you can read the full procedure at http://codex.wordpress.org/Moving_WordPress