× Here you can get community support related to ReDJ.

Do many redirects slow my site

More
9 years 10 months ago #2608 by admin
Replied by admin on topic Do many redirects slow my site
Hi and welcome back.
The rule is not so complex to build and you could first try with a 301 redirect, and when all work well change it to 200 (internal). But before this, we need to build the placeholder that allows you to get the "29" from the "aaaa". This is a table select so I need the table structure with some example rows. You can post here or send me an email at info(at)selfget.com.

Kind regards,
Luigi

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

More
9 years 10 months ago - 9 years 10 months ago #2612 by admin
Replied by admin on topic Do many redirects slow my site
Here is the rule:
From URL: ^/[^/]+$
To URL: http://{siteurl}/horses/${id}-${alias}
Request only: true (checked)
Placeholders:
alias={pathltrim /}
id={tableselect #__content,id,alias}${alias}{/tableselect}

Please, advise.

Kind regards,
Luigi
Last edit: 9 years 10 months ago by admin.

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

  • bonaventure
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago #2614 by bonaventure
Replied by bonaventure on topic Do many redirects slow my site
For some reason its not picking up the alias variable. The final url looks like this: www.equitag.com/horses/29-$alias instead of www.equitag.com/horses/29-aaaa.

I'm also getting a blank screen on all my other menu items.

We're getting closer.
Please advise.
Thank you.

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

More
9 years 10 months ago #2615 by admin
Replied by admin on topic Do many redirects slow my site
Hi Peter.
Be sure to put ${alias} and not $alias as it seems from your message.

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

  • bonaventure
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago #2617 by bonaventure
Replied by bonaventure on topic Do many redirects slow my site
You are correct, I didn't have ${alias}.
However, its still not working as expected. it always redirects to my home page. The same thing happens with every menu item (everything goes to the home page).
Thanks for your patience. :)

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

  • bonaventure
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago #2618 by bonaventure
Replied by bonaventure on topic Do many redirects slow my site
Forgive me if this is a stupid question, but don't we need to use some kind of pregmatch to get a four letter code from the "from URL". Otherwise, it would conflict with other urls on the site that are not four letter codes. I hope this makes sense.

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

Time to create page: 0.106 seconds