× Here you can get community support related to ReDJ.

SSL Redirection

  • bonaventure
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 2 months ago #3018 by bonaventure
Replied by bonaventure on topic SSL Redirection
I just noticed a slight problem, not so much with your rule, but with its impact on another rule. Recall that I have the following rule in place to dynamically redirect to animal profiles:
From URL: ^/[0-9A-Za-z\-]{5}$
To URL: http://{siteurl}/horses/${id}-${alias}
Request only: true (checked)
Skip condition: /login$

(200)Internal Redirect 

If I go from SSL to non-SSL or www.mysite.com/cart/checkhout (or register) to www.mysite.com/aa-aa (or any 5 character code as defined in the rule above), it won't work.

I tried to modify the following rule without success:
From URL: ^https://
To URL: http://{host}{path}{queryfull}
Request only: false (unchecked)
Skip condition: /(cart/|register|[0-9A-Za-z\-]{5})

My thinking here is that I can live with SSL if they are scanning an ID after already being on the checkout page (this won't happen very often, but I don't want the site to break if it does. I would prefer to redirect to http for anything that resembels "aa-aa", but I can't figure out how to do it without running into a never ending loop because of other rules. I hope I'm explaining this correctly.

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

More
10 years 2 months ago #3022 by admin
Replied by admin on topic SSL Redirection
I'm not sure this is the reason, but try to replace the rule as follow (to preserve protocol):
To URL: {scheme}://{siteurl}/horses/${id}-${alias}

If this not solves I need more details about how to try the request (you can send me an email at info(at)selfget.com if you prefer).

Kind regards,
Luigi
The following user(s) said Thank You: bonaventure

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

  • bonaventure
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 2 months ago #3024 by bonaventure
Replied by bonaventure on topic SSL Redirection
OK, that appears to have worked. I was forgetting the :// after {scheme}.
Thank you so much!!
:cheer: :cheer:

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

More
10 years 2 months ago #3025 by admin
Replied by admin on topic SSL Redirection
Great!!!! :)

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

Time to create page: 0.129 seconds