I have a boat load of questions and maybe this topic should not be a "Dream Feature" request since it's already doable (although not advisable). I just started testing on my dev site and got a result other than what I expected.
Brennan do you think this topic should be moved? Or should I start over with a new post?
Announcement
Collapse
No announcement yet.
Allow Dots, Slashes and Spaces in Miva Part Numbers
Collapse
X
-
Yes, I understand by default. But this site would be using the product code, not the product name. What happens then? Still adds dashes? Or will it product the links with the plus like Miva Merchant is currently doing?Originally posted by Brennan View PostURI Management replaces all spaces with dahses and uses the product name (not the code by default)
Leave a comment:
-
URI Management replaces all spaces with dahses and uses the product name (not the code by default)
Leave a comment:
-
I'd like to circle back on this now that I know it's Miva Merchant adding the plus signs into the spaces into the links.Originally posted by Brennan View Postlesliekirk your situation sounds a bit different as you are not using URI management already. Your best bet would be to upload a spreadsheet of the old URLs (current structure) to create 301 redirects in URI Management after you generate the new URLs you want (you could also keep the same URL structure you have today by doing this same things but upload them as canonical URLs) As long as you don't have parameters in the URLs this will work great.
I'd like to turn the URI Management on but I'm not sure what it's going to do when I ask it to generate the URI's. Will it insert the plus signs?
Leave a comment:
-
My bad, I was trying to do it with the spaces, not the plus signs. It working with the plus signs would make perfect sense with what Miva Support just told me:Originally posted by Ron Frigon View Post
Might need someone from Miva to chime in on that. I can add this URI with no problem.
Capture.JPGCode:/some+old+product+code.html
The Miva Merchant software appears to be using + instead of %20 to replace the spaces by default
Leave a comment:
-
Might need someone from Miva to chime in on that. I can add this URI with no problem.If I try to manually add the old URL with the plus sign I can't.
Capture.JPGCode:/some+old+product+code.html
Leave a comment:
-
I guess that's where I am confused. If I try to manually add the old URL with the plus sign I can't. So you are saying I can force the system by doing an import?Originally posted by Ron Frigon View Post
If they're not using URI Management it must be done in .htaccess. In this case you can import the old URL, including the + sign instead of spaces, into URI and be good to go. You're not redirecting the product code, you're redirecting whatever the actual url is.
Also, the bigger problem, the products do need to be redirected to other product codes. The store owner is creating new product codes (hopefully without the spaces) that these old ones need to be redirected to.
Leave a comment:
-
If they're not using URI Management it must be done in .htaccess. In this case you can import the old URL, including the + sign instead of spaces, into URI and be good to go. You're not redirecting the product code, you're redirecting whatever the actual url is.I'm now wondering if I should take a peek at the current htaccess file. Could they have been inserted via that way?
Leave a comment:
-
I thought so too, but I even looked at on Microsoft Edge, different machine from my daily driver and they are there too. I'm now wondering if I should take a peek at the current htaccess file. Could they have been inserted via that way?Originally posted by Ron Frigon View Post
That seems odd to me. I would try a couple different browsers. A space should be %20.
Leave a comment:
-
That seems odd to me. I would try a couple different browsers. A space should be %20.The browser is output the URL with plus signs in the spaces.
Leave a comment:
-
What is going to be the best format to use for the URL with spaces in an .htaccess redirect file? The browser is output the URL with plus signs in the spaces.Originally posted by Brennan View PostGot it. Then your only real option is to build all the redirects one at a time in the .htaccess file. There is not going to be a rule based way to go from having spaces in the product code to using a sligified product name for example.
Leave a comment:
-
Got it. Then your only real option is to build all the redirects one at a time in the .htaccess file. There is not going to be a rule based way to go from having spaces in the product code to using a sligified product name for example.
Leave a comment:
-
Yes, the current URL structure has spaces. That is how the vendor provides the product codes, so it's how the store owner inputs them.Originally posted by Brennan View PostThe URL cannot have spaces only the product code (if you turn off strict validation for codes)
So you're saying the current URL structure has spaces like that?
Leave a comment:
-
The URL cannot have spaces only the product code (if you turn off strict validation for codes)
So you're saying the current URL structure has spaces like that?
Leave a comment:
-
Originally posted by Brennan View PostA couple things worth clarifying here.
lesliekirk your situation sounds a bit different as you are not using URI management already. Your best bet would be to upload a spreadsheet of the old URLs (current structure) to create 301 redirects in URI Management after you generate the new URLs you want (you could also keep the same URL structure you have today by doing this same things but upload them as canonical URLs) As long as you don't have parameters in the URLs this will work great.
If you coming from old style Miva long links that does contain URL parameters, your only option is to build a .htaccess file of the old URL to the new URL for each product/category.
So color me confused. Will the uploading of a spreadsheet bypass the errors cause when manually trying to create a URI? There is no plan to update to product codes without the spaces.
5OjEPw.png
The links are not the old-style long links
Leave a comment:
Leave a comment: