× Here you can get community support related to ReDJ.

Redirect links to my amazon S3 bucket

  • derekk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago #7011 by derekk
the current url is
staging2.homehighschoolhelp.com/images/easyblog_articles/2959/Freedom-to-tailor-education--top-image.jpg

My bucket and folder underneath it is
s3-us-west-2.amazonaws.com/hhhblogs/images/easyblog_articles/


My Redirect rule
From URL : ^/images/easyblog_articles
To URL : s3-us-west-2.amazonaws.com/hhhblogs/images/easyblog_articles/{pathltrim /images/easyblog_articles}{queryfull}

My Test URL
on this page
staging2.homehighschoolhelp.com/blogs/the-gifts-of-homeschooling
this is the image
staging2.homehighschoolhelp.com/images/easyblog_articles/2490/The-Gifts-of-Homeschooling.jpg

Amazon Direct URL
s3-us-west-2.amazonaws.com/hhhblogs/images/easyblog_articles/2490/The-Gifts-of-Homeschooling.jpg

I saw this ticket and it looks very similar to what I am trying to do
www.selfget.com/forum/redj/893-redirect-links-for-amazon-s3.html

Thank you

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

More
5 years 2 months ago - 5 years 2 months ago #7020 by admin
Replied by admin on topic Redirect links to my amazon S3 bucket
Hi.
If you user the caret ^ in a rule it means "start with" and the rule won't work if the site is under a folder (like in your first example). But if you plan to move the site on root once ready, and you don't want to change all the rules, there is a better way. In the plugin settings (advanced) you can put a path (e.g. /hhhblogs) that is excluded from the process of checking rules. Once you are ready to move the site, you just blank this field and the rules continue to work.

I can't see any other problem in your rules, but let me know if I'm missing something.

Best
Luigi
Last edit: 5 years 2 months ago by admin.

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

Time to create page: 0.079 seconds