leonardosampaio wrote:how can i set apache to behave like that:
when i access localhost it opens a folder outside xampp/htdocs ( more specific in C: ), but when i navigate inside that page, i can access htdocs folders?
rootDocument is C:\something\ and inside C:\something\index.php there are links to C:\xampp\htdocs\whatever...
Either define more then one virtual hosts with unique domain names and use this new Domain Names in your Links
or define Apache Alias zu fit your needs.
In all ways, that will be not a clean solution and i don't have any idea if their exist any situation i would configure Apache that way.
Maybe there is a better solution for your needs, but for that we need to know why you want to do that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~free software according to purpose of usageXAMPP 1.8
for local development/testing onlyZend Server 6 (free)
for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~It's like porn for programmers