| Hello all specialists,
I am trying to create an archive of a CMS site (WebEdition) to make a static
version of that site which is to be placed on the original domain instead of
the CMS.
Actually the archive works fine right now with Options:
httrack <http://example.com> -w -O . -%v --robots=0 -%e0 -N100
- but how can I preserve all original URLs, so that they remain the same and
links from other websites do still work?
Like now, the original link and URL
example.com/content/en/title.php?recent
is made to something like
example.com/content/en/title1234.html?recent
when I place the archive at document root for the example.com. So old links
from other websites will lead to 404.
I tried a simple redirection with .htaccess like this:
RewriteEngine on
RewriteRule ^(.*).php$ $1.html
But of course it won't work simply as that because Httrack adds that 4 digit
random number...
With option -K, as I found out, the internal links in the archive will be kept
as they were, but they won't work.
Any help out there?
| |