SEO, AdWords, affiliates, advertising, and promotions
Hi @malalta, we are trying to achieve 301 redirection of pages across our website. Give below is an example for reference.
301 Redirect this | Here |
https://thefunkydelicstore.com/collections/types?q=Men%20High%20Top%20Shoes | https://thefunkydelicstore.com/collections/men-shoes/high-top-shoes |
Likewise, we have have identified a bunch of URLs and have the list. Could you please help us achieve this
Thanks in advance.
Hey @Kashif91 I'm not the user you're looking for, but...
It's super easy to upload a list of 1-to-1 redirects. Just go into Shopify Admin > Online Store > Navigation > URL Redirects
There is built in functionality for exporting/importing URL redirects, and some official documentation over here. If you have any special requirements for bulk URL redirects then the app Excelify and some good excel skills can probably set you right.
For bulk .csv uploads you just need two column headers [Redirect from] & [Redirect to] then as long as your to/from URL's are all paths (not full URL's) should be fine.
What I mean:
Full URL: https://thefunkydelicstore.com/collections/men-shoes/high-top-shoes
Path: /collections/mens-shoes/high-top-shoes
Couple other things to consider:
Hi @KieranR, even after defining the URL's under URL redirects, the redirection is not working. The old url's are not getting redirected to new URL's.
example: this is still not getting redirected.
301 Redirect this | Here |
https://thefunkydelicstore.com/collections/types?q=Men%20High%20Top%20Shoes | https://thefunkydelicstore.com/collections/men-shoes/high-top-shoes |
Please help
Thanks
For the redirect to fire, the original url must result in a 404. With your example given above, it does not. The redirection won't trigger.
If you must move the user away from this specific page you'll need to look into using JavaScript for the redirect vs something server side.
Hi @Jason,
Could you please help with the required JavaScript code as we are unable to achieve it. Similarly, we have identified 35 such URL's which has to be redirected. Please provide the necessary code keeping this in mind.
Thanks in advance
Hi @Jason, we tried implementing it using Javascript code. The redirection is working however, in the backend we are getting status code as 200 instead of 301.
We would like to achieve 301 status for these pages. Please help
Thanks in advance!
The HTTP status will remain 200 since the page is loading. The page exists, is loading correctly so there's no reason for the system to return anything but a 200.
The JavaScript method runs after the page is loaded so is a redirect for the viewer only.
User | RANK |
---|---|
6 | |
6 | |
5 | |
5 | |
4 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By