Hi Luigi,
Thanks for your quick response.
For #3) Your solution works! Thanks!
For #1) I tried explaining it earlier (see screenshot here:
prntscr.com/lbvf8h ) where this '/' (shown by the red arrow in screenshot) displays when I use the pattern:
{scheme}://{siteurl}/directory/${city}/${cat}/${subcat}/all\?cf43[0]=${city}
I do understand that the \ is used to escape the '?' but I am not understanding why I am getting a '\' in the finished URL before the '?' mark.
Give it a try yourself, go to:
muslimlink.ca/directory/london/food/restaurants-catering/all and see how it converts to:
muslimlink.ca/directory/london/food/restaurants-catering/all/?cf43[0]=london.
This is the exact rule I'm using:
prntscr.com/lbvjhg
For #2) Currently these are the rules set up in this exact order:
1) ^/directory/.*/all$ becomes {scheme}://{siteurl}/directory/${city}/${cat}/${subcat}/all\?cf43[0]=${city}
2) ^/directory/.*/visit$ becomes {scheme}://{siteurl}{pathrtrim /visit}{queryfull}
3) ^/directory/.*/all/page.*/ becomes {scheme}://{siteurl}/directory/${city}/${cat}/${subcat}/all/page${page}\?cf43[0]=${city}
4) ^/directory/.*/page.* becomes {scheme}://{siteurl}/directory/${city}/${cat}/${subcat}/all/page${page}\?cf43[0]=${city}
5) ^/directory/.*/[0-9]+- becomes {scheme}://{siteurl}/directory/${city}/${cat}/${subcat}/${buz}?city=${city}
The rule I want to add needs to change URL from (as an example):
/directory/london/babies-children/clothing-accessories/
/directory/london/babies-children/clothing-accessories
to become:
/directory/london/babies-children/clothing-accessories/all?cf43[0]=london
Your previous solution (which was "From URL: ^/directory/"), breaks some of the above (even when I order it at the bottom). I need to make sure it doesn't break any of the above, and also happens ONLY when the URL has a city, a category and a subcategory
(in previous example: city=london, category=babies-children, subcategory=clothing-accessories).
So basically the following urls should
NOT be affected by this new rule:
- /directory
- /directory/london
- /directory/london#Food
- /directory/london/food/restaurants-catering/all
- /directory/london/food/restaurants-catering/all?cf43[0]=london
- /directory/london/food/restaurants-catering/all/page2
- /directory/london/food/restaurants-catering/all/page2?cf43[0]=london
- /directory/london/food/restaurants-catering/4745-ali-baba-pita-wrap
- /directory/london/food/restaurants-catering/4745-ali-baba-pita-wrap?city=london
It should
ONLY affect the URLs:
- /directory/london/food/restaurants-catering/
- /directory/london/food/restaurants-catering
(NOTE: I'm using city="london", cat="food" and subcategory="restaurants-catering" as examples only. It should allow any city, cat or subcat).
I hope I am clear now.
Thank you!