Remap not occuring


(Serge) #1

From: /policies//gifts_and_benefits_policy
To: /policies/
/gifts_benefits_and_hospitality_policy

Documentation: https://matrix.squiz.net/manuals/asset-screens/chapters/web-paths

Attempt:

Result:

What am I doing wrong? Is there a delay before remaps apply?

PS: Double checked that old url didn’t point to an asset as per notice here Remap not working on page


(Bart Banda) #2

What is the response code for when you visit the /policies/_/gifts_and_benefits_policy URL? Is it 404 or 200?

Also, I’m interested in how you got the /_/ part in the web path? Never seen that on a Matrix URL before so wondering if that’s causing any issues.


(Serge) #3

So 200, not served by proxy cache. That page is set as “Archived” in Matrix.

As for “_”, I don’t know, I’ve inherited that system when I started working here, I’m not sure why they did that but I’m assuming it is a valid character in URLs so unless NGINX or Matrix has a RegEx excluding that from remaps it shouldn’t be an issue, worth investigating though.


(Bart Banda) #4

Oh, if the asset that the URL is pointing to is still in the system, the remap won’t work. Especially if you are viewing it as a user who has admin rights to the asset. You need to remove the web path off the archived asset so that the URL doesn’t point to any asset at all and then the remap should work.