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? Quote 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. Quote 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? Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.