Solution:
Step 1: Access the file wp-config.php and add the following.
define(‘WP_HOME’,’http://yourdomain.com’); define(‘WP_SITEURL’,’http://yourdomain.com’);
Replace yourdomain.com with the your website URL.
Step 2: Delete your current .htaccess file and create a new .htaccess file with the following contents.
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
This could resolve the issue.