Site URL migration

Here is an example of how to move your comments after your posts are moved, from<slug> to<slug> in that example.

Rules file

First, you must create a rules file in the remark's /var folder.

Format is simply old_url new_url like following:

Applying the remap

After rules file is ready, run the following command (ADMIN_PASSWD must to be enabled on server for it to work):

remark42 remap --admin-passwd <password> -s <your site ID> -f var/rules

If running in a docker container, the command becomes (ADMIN_PASSWD will be taken from the environment):

docker exec -it remark42 remap -s <your site ID> -f var/rules

The command above sends a request to start the remap job. You can see the job execution logs by running:

docker logs <container>