By morleo
Connecting via ip X.XXX.XXX.XXX/
Is asking login and password is OK? (hostname will be later, It’s updating It’s nameservers)
It looks like .htaccess file in folder doing It. But in the main folder .htaccess look like
# 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
Thank you!
UPDATE: But site loads in the background and If I press Cancel everything works properly. But It hasn’t ask for login and password. (.htaccess login/password window)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
To ask for a username and password, you need to add something like this to your .htaccess file:
AuthUserFile /etc/apache2/.htpasswd
AuthGroupFile /dev/null
AuthName "Please Enter Password"
AuthType Basic
Require valid-user
Then to set the password, run:
htpasswd -c /etc/apache2/.htpasswd username
For all the details, check out: How To Use the .htaccess File
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.