Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

.htaccess

Featured Replies

hi guys,

having a little issue with password protecting a file with ht access

 

my .htaccess file is stored in my main directory

my .passwd file is stored above this in the root directory.

 

when i enter the username and password

it doesnt let me in...

 

here is the code for the .htaccess

 

 

AuthName "Restricted Area"

AuthType Basic

AuthUserFile ../.htpasswd

AuthGroupFile /dev/null

<Files blog_post.php>

require valid-user

</Files>

  • 2 weeks later...

so .htpassword would upload to the directory above public_html folder

and .htaccess file would look like:

 

AuthName "Restricted Area"

AuthType Basic

AuthUserFile /home/username/.htpasswd

AuthGroupFile /dev/null

require valid-user

 

This is based on a cpanel server but the basics are the same on any server. Just have to use the correct path.

  • 3 weeks later...
  • Author

It turns out that my code was correct. My host has disabled the use of HTaccess... urgh #drainer

Yeah, I spent about a month messing about with .HTaccess etc before my host finally worked out that they didn't have it turned on! After I contacted them several times about it!!

  • Author

its an absolute nightmare, they want to charge me £15.00 for password protection services.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.