admin ha scritto:
For these case and to simplify rule portability, I've added a plugin advanced option that allows you to specify the base path...
Have you already done this?
Eureka! I had
not done that. I have three copies of the Website in question and decided to use the one within the XAMPP installation on my own computer for testing. That is the only one that requires the non-blank Base Path. (
Administrator > Extensions > Plugin Manager > System - ReDJ > Advanced > Advanced Parameters > Base Path)
Note that in the
To URL field, the
pathltrim must also contain the base path addition. From the example in my original posting to this thread, the
To URL now becomes:
{scheme}://{siteurl}/section_alias/category_alias/{pathltrim /<subdirectory_name>/section_alias/}{queryfull}
where needed. In my case,
<subdirectory_name> will be
gemut.
After I got that redirect rule working on my local installation, I installed and tested it on the online test site and the online public site. All those work correctly.
Also I installed and verified the rule that covers more letters in the test. From the original example, one such From URL will be:
^/section_alias/[^c][^a][^t][^e][^g][^o][^r][^y]
If the word
category does not follow the section alias, the rule is triggered.