En local, si ton site est accessible par 'localhost/mondossier', tu spécifie 'http://localhost/mondossier' dans les requêtes.
En général, je configure des virtualhost pour chaque site en local, ça évite les chemins de type 'http://localhost/mondossier' mais plutôt 'http://monsite', et surtout...