× Here you can get community support related to ReDJ.

1100 product URLs to redirect

More
9 years 3 months ago - 9 years 3 months ago #3411 by river
1100 product URLs to redirect was created by river
Joomla version 3.3.6
Hikashop Enterprise 2.3.4

I am working on uppgrading my online store to joomla 3.3.4, and therefore I have installed ReDj component in order to help me create 301 redirects for my old product URLs to new product URLs

So I have created the redirect like this:
example 1
From URL * ^/sticker-lampe
To URL * shop/produkt/sticker-lampe

example 2
From URL * ^/reise-led-lampe
To URL * shop/produkt/reise-led-lampe

I have tested it in google chrome and they work fine. So my question is, could you confirm that this i the correct way to make the 301 redirects ?
Because I have like 1100 product URLs to redirect and I want to make it right so I dont loose Google Ratings.
Last edit: 9 years 3 months ago by river.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3413 by admin
Replied by admin on topic 1100 product URLs to redirect
Hi,
the right rule should have the full URL in the destination so:
From URL: ^/sticker-lampe
To URL: {scheme}://{siteurl}/shop/produkt/sticker-lampe
Request only: true (checked)

It should be a possible to create a single rule for all 1100 redirections, but this needs to find a "common pattern" that matches all and only the URLs to redirect. A good example could be if your old URLs had an initial /cat/ or something like this. In your case it seems there is nothing like this. We could catch ANY URL like:

^/xxxxxxx$

But this will also match URL like /contact or /about-us, so...

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3414 by river
Replied by river on topic 1100 product URLs to redirect
OK, I will use this rule that you gave me.

From URL: ^/sticker-lampe
To URL: {scheme}://{siteurl}/shop/produkt/sticker-lampe
Request only: true (checked)


My problem is that I have a demo site on a URL A (www.mysite.com) where I am going to make the site 100 % ready. Then I'm going the to transer it to the live site URL (www.mylivesite.com).

So If I use the rule

To URL: {scheme}://{www.mysite.com}/shop/produkt/sticker-lampe


Then I have to change the rule again when I move the site to www.mylivesite.com URL. So it would be....

To URL: {scheme}://{www.mylivesite.com}/shop/produkt/sticker-lampe


How can I avoid this ?

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #3415 by admin
Replied by admin on topic 1100 product URLs to redirect
Sorry, maybe I was not clear. You have to "literally" put this in your rule:
To URL: {scheme}://{siteurl}/shop/produkt/sticker-lampe

{scheme} and {siteurl} are two of so called "macros" supported by ReDJ and Tag Meta. These strings will be replaced "at runtime" with the proper values and this allows to build flexible and portable rules.

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.109 seconds