I have built a site for a client using WordPress. The site was built on the subdomain http://staging.url.com. Using Plesk I restricted access to the 'staging site' using a password
When site was completed I downloaded 'staging site', duplicated the database and re-uploaded to http://www.url.com. Everything works ok apart from when I'm logged into the wordpress admin, I get the Authentication Required pop-up, saying http://staging.url.com requires a username and password.
I cannot find any file that would be telling the server that http://www.url.com is http://staging.url.com and prompting the Authentication Required pop-up.
Can anyone help?
Many thanks,
Elliott.
Current http://staging.url.com 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
AuthType Basic
AuthName "restricted area"
AuthUserFile /var/www/your-url/.htpasswd
require valid-user
Current http://www.url.com 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
I think your files it is loading from your staging website
Go to inspector on your browser and check if any image or files are loading from your staging in the production website.