cgm225 Posted May 31, 2008 Share Posted May 31, 2008 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 More sharing options...
cgm225 Posted May 31, 2008 Author Share Posted May 31, 2008 I guess I am asking if there is a way to make a more generic Relative path. Link to comment https://forums.phpfreaks.com/topic/108140-way-to-make-htpasswd-path-more-generic/#findComment-554298 Share on other sites More sharing options...
scrupul0us Posted June 2, 2008 Share Posted June 2, 2008 how about a symbolic link? Link to comment https://forums.phpfreaks.com/topic/108140-way-to-make-htpasswd-path-more-generic/#findComment-555519 Share on other sites More sharing options...
cgm225 Posted June 2, 2008 Author Share Posted June 2, 2008 I use symbolic links, but how would you apply them to this problem? Link to comment https://forums.phpfreaks.com/topic/108140-way-to-make-htpasswd-path-more-generic/#findComment-556099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.