HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Mirror without .html file extension
Author: tricky
Date: 06/06/2023 08:59
 
only way I can think of is to copy the site then use mod_rewrite to remove it.
e.g.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

you can then set up 301 redirects in .htaccess.
Obviously, this isn't ideal for a large site though.
 
Reply Create subthread


All articles

Subject Author Date
Re: Mirror without .html file extension

08/31/2015 22:23
Re: Mirror without .html file extension

09/22/2015 17:54
Re: Mirror without .html file extension

06/06/2023 08:59




3

Created with FORUM 2.0.11