Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
.htaccess headaches
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 904715" data-attributes="member: 110816"><p>Your .htaccess looks good except for the require line. I've traditionally used "require valid-user" there and the .htpasswd file has the list of user<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick out tongue :p" loading="lazy" data-shortname=":p" />assword combination that's acceptable.</p><p></p><p>You are probably on the right track thinking whether the path to .htpasswd is correct. If you have SSH access to your host, you can login and then go to the directory where you put .htaccess and type 'pwd' to grab the directory.</p><p></p><p>If that isn't possible, and you have access to PHP ony our webhost, you can create a simple file with the code "<? phpinfo(); ?>" and load that in your browser, you will get a bunch of information about PHP and also importantly the full directory where the PHP file is executing from. Compare this directory with where you think your .htpasswd is and confirm they match..</p><p></p><p>Regards</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 904715, member: 110816"] Your .htaccess looks good except for the require line. I've traditionally used "require valid-user" there and the .htpasswd file has the list of user:password combination that's acceptable. You are probably on the right track thinking whether the path to .htpasswd is correct. If you have SSH access to your host, you can login and then go to the directory where you put .htaccess and type 'pwd' to grab the directory. If that isn't possible, and you have access to PHP ony our webhost, you can create a simple file with the code "<? phpinfo(); ?>" and load that in your browser, you will get a bunch of information about PHP and also importantly the full directory where the PHP file is executing from. Compare this directory with where you think your .htpasswd is and confirm they match.. Regards [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
.htaccess headaches
Top