git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [users@httpd] mirror a html site


> the resulting files are not browsable without creating a structure of folders for each domain downloaded (the original www.mydomain.com and the folders for the cdn) which ends up having an ugly URL
www.mydomain.com/www.mydomain.com/index.hml.
> 
> Can anyone know how to solve this without manual interaction?

Returning to topic, you can keep structure on disk as it is, and shorten user-visible URLs with redirects: one external redirect from /www.mydomain.com/ to / , and one internal back from / to /www.mydomain.com/ with appropriate exceptions for all other domains.
-- 

With Best Regards,
Marat Khalili

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-users/msg02536.html on line 84
Call Stack
#TimeMemoryFunctionLocation
10.0007362864{main}( ).../msg02536.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-users/msg02536.html on line 84
Call Stack
#TimeMemoryFunctionLocation
10.0007362864{main}( ).../msg02536.html:0