Jump to content

Way to make htpasswd path more generic...


cgm225

Recommended Posts

I have an htaccess file with a path to the htpasswd file as such:

 

AuthUserFile /web/example.com/library/ht/.htpasswd

 

where /web/example.com is basically the root path.

 

 

Is there a way to make this path more generic so it will work on my personal WAMP without modification?  Restated, on my web server, the absolute path is /web/example.com/library/ht/.htpasswd  and on my home WAMP it is /public_html/library/ht/.htpasswd  .  Is there a way to write this path so it will work on both?

Link to comment
https://forums.phpfreaks.com/topic/108140-way-to-make-htpasswd-path-more-generic/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.