How to alias from xampp/htdocs to local file://structure/../
Posted: 30. July 2012 15:19
I have installed XAMPP - Lite on a Win7 Box. I have installed the most recent XAMPP, 1.8
I have, in my local file structure, a folder containing local copies of various websites:
I would like to leave those local files where they are on my local machine, and use XAMPP. That is, to map a request on my local machine, with XAMPP enabled, as follows:
I would have guessed that some version of an .htaccess or .httpd at the root [ie, at ..../xampp/htdocs/.ht...] would accomplish this, but I have tried various forms, and they all render my server confused.
Any suggestions ? Or, is the ONLY solution to move the web folder.... ? A Win7 mapping ?
I have, in my local file structure, a folder containing local copies of various websites:
- c:/web/firstdomain
c:/web/seconddomain
I would like to leave those local files where they are on my local machine, and use XAMPP. That is, to map a request on my local machine, with XAMPP enabled, as follows:
- 127.0.0.1/firstdomain/foo.html ---> c:/web/firstdomain/foo.html
or, more generically: 127.0.0.1/anyDomain/*.* ---> c:/web/anyDomain/*.*
I would have guessed that some version of an .htaccess or .httpd at the root [ie, at ..../xampp/htdocs/.ht...] would accomplish this, but I have tried various forms, and they all render my server confused.
Any suggestions ? Or, is the ONLY solution to move the web folder.... ? A Win7 mapping ?