hi Sai29180
moving a website to local environment is little tricky, but it seems to me you’ve a great amount of knowledge, so you will be fine!
1) start everything over.
2) replace every url to your local url in your database file, and then import into database.
3) make changes in wp-config.php file for database name, user, password and host. (change host to “localhsot” if that something else).
4) make changes in .htaccess file in wordpress main directory, it’s same as the wp-config.php file is located.
note: .htaccess is a hidden file, so you cant see this file in normal file explorer, use ftp client to browse into it, don’t be confused if .htaccess file is not in the wordpress site folder, like you said in your post i’ve downloaded your site via cpanel, it is possible you’ve lost your original .htaccess file, because some cpanel does that, but its not big deal, you can open the web server via ftp client to download it or simply just create it a new one in you local webpress installation folder.
you can create this file in any text editor just make sure the name of the file is .htaccess and has no file extention like .php or html etc.
add the code in .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
5) you might have to change your webpress installation folder and file permissions, in order to function properly like to installing or updating wordpress or plugins etc.
a) if using mac, paste this code in bottom of your wp-config.php file.
/* WordPress All Privileges for Localhost */
define('FTP_HOST', 'localhost');
define('FTP_USER', 'daemon');
define('FTP_PASS', 'xampp');
if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}
b) you need to set your wordpress site permissions to 751 or 777, what ever your needs are.
you can change this permissions manually or install some kind of app for it like BatChmod.
that’s all if you’re moving a regular wordpress, if any any case you are moving a multisite, there will be additional steps, let me know if that’s the wordpress multisite!