investigating url mapper strictness

blindmime
@blindmime
10 years ago
772 posts
Let's say I'm mapping old jr4 links to a new jr5 website. So in url mapper I set /Firstname_Lastname => /firstname-lastname, which works, but if my artist has an old link on his website like /Firstname_Lastname/ (with the ending slash) it won't work.

What's the possibility of making it work whether or not the ending slash is there?
updated by @blindmime: 03/14/15 05:23:07PM
paul
@paul
10 years ago
4,335 posts
Let me check that out and get back to you.


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
10 years ago
4,335 posts
Actually, what you are trying works for me even without the URL Mapper module.

/firstname-lastname
/firstname_lastname
/firstname_lastname/

all take me to /firstname-lastname so this must be inherent within JR


--
Paul Asher - JR Developer and System Import Specialist
blindmime
@blindmime
10 years ago
772 posts
I don't think that's quite the same.

Here's a screenshot of jr4's naming (note the url bar and the "Not Found")
baddavid.jpg
baddavid.jpg  •  154KB


updated by @blindmime: 01/27/15 10:48:03PM
blindmime
@blindmime
10 years ago
772 posts
Here's a screen shot if I have entered "/David_Fuglewicz => /dave-fuglewicz" in Url Mapper and then the link is "http://tapegerm.com/David_Fuglewicz". It works only for this specific link.

However, if the link is "http://tapegerm.com/David_Fuglewicz/" it returns a Not Found.
gooddavid.jpg
gooddavid.jpg  •  124KB


updated by @blindmime: 01/27/15 10:50:43PM
brian
@brian
10 years ago
10,149 posts
blindmime:
Here's a screen shot if I have entered "/David_Fuglewicz => /dave-fuglewicz" in Url Mapper and then the link is "http://tapegerm.com/David_Fuglewicz". It works only for this specific link.

However, if the link is "http://tapegerm.com/David_Fuglewicz/" it returns a Not Found.

When Apache sees the trailing "slash" it may be looking for "David_Fuglewicz" as a directory (which mod_rewrite would keep from coming into Jamroom's router, so it wouldn't see it).

I'll see if there is a work around for this.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags