- generate permanent 'RewriteRule' lines for an Apache .htaccess file.
- un-generate 'RewriteRule' lines into the original lines used to create them.
The lines format must be old-url comma new-url. The 'www.' in the old URL is optional.
URLs trailing / are optionals.
(Using a / at the end of an URL is faster, as it avoids a second HTTP request to the server.)
UnGenerate uses the domain on the same line, pay attention with different domains!
Do not forget to add 'Rewrite on' before the generated lines in the .htaccess file.
Before each domain add a new 'RewriteCond' before each corresponding 'RewriteRule' lines block.
More information about Apache .htaccess file.