FROM CACHE - en_header

301 Redirection of Pages

Kashif91
Tourist
27 0 2

Hi @malalta, we are trying to achieve 301 redirection of pages across our website. Give below is an example for reference. 

301 Redirect thisHere
https://thefunkydelicstore.com/collections/types?q=Men%20High%20Top%20Shoeshttps://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.

Replies 6 (6)
KieranR
Shopify Partner
310 25 105

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: 

  • The example you gave links to a collection page with tag /collections/collection-name/tag-name which works fine, however tag pages typically are not configured optimally for SEO in Shopify; to start with they don't have a custom field for a fully unique title tag. There are a few ways around this, but just highlighting a potential flaw in the plan.
  • You should test the redirects are working as anticipated. Usually I use an app like ScreamingFrog for this which takes in a list of the old URLs and checks what they are doing. Ideally once all redirects are in new place and domain switched over to Shopify then they should be redirecting (in one hop) over to the new endpoint URL's specified.
     

 

Full time Shopify SEO guy, based in NZ. Sometimes freelance outside the 9-5.
Kashif91
Tourist
27 0 2

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 thisHere
https://thefunkydelicstore.com/collections/types?q=Men%20High%20Top%20Shoeshttps://thefunkydelicstore.com/collections/men-shoes/high-top-shoes

 

Please help 

Thanks

Jason
Shopify Expert
10915 192 2190

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.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
Kashif91
Tourist
27 0 2

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

 

Kashif91
Tourist
27 0 2

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!

Jason
Shopify Expert
10915 192 2190

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.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★