Remap not working on page


(Ryan Archer) #1

I am attempting to do a remap on a page and it is not working. I can't use the "web paths" option on the page asset as it's remap property is out of scope for that (URL is totally different).

So I use the remap manager and put in the old url and the new url and then it seems to work except i get this error message underneath the old url in the remap entries:

 

This URL is currently in use by Standard Page "Soldier portraits" [#282812]. This remap is not currently being used. 

 

And the remap does not work at all. When going to the old page, it does not redirect to the new one. I'd guess that the error message has something to do with it because it tells me that it is not using the remap?

I just don't know what it means or what I need to do.


Remap not occuring
(Marcus Fong) #2

What that message means is that you can’t use a remap over the top of an existing asset.

When Matrix receives a request for a URL, if there is an asset with that URL it will always serve that asset, regardless of any remaps. If there isn’t an asset, then it will check for a remap matching that URL and serve a redirect to the remap’s destination.


If Matrix can’t find either an asset or a remap matching the URL, then it will serve a 404.


To make your remap work, you would need to stop page #282812 from occupying the URL you’re trying to remap, either by deleting it (trash it and purge the Trash - only if you don’t need it anymore) or changing its URL (by changing its webpath, or moving the asset to another location). Once Matrix can no longer find an asset with that URL, it should check for and use your remap.