Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

.htacess file 301 redirects that are strange

Posted on 2016-09-07
4
Medium Priority
?
119 Views
Last Modified: 2016-09-14
Hi All

I have these 3 re-directs with junk in them and putting quotes around them does not work. Please advise? The website home URL is https://www.hcalawyers.com.au/

Redirect 301 /henry-carus-2/?utm_source=yourlifechoices&utm_medium=email&utm_campaign=yourlifechoices-email-art06 /people/henry-carus/
Redirect 301 /henry-carus-2/?utm_source=yourlifechoices&utm_medium=email&utm_campaign=yourlifechoices-email-art01 /people/henry-carus/
Redirect 301 /numbers-don%e2%80%99t-lie-31-stats-show-that-australians-are-right-to-be-driving-on-left-infographic/ /blog/numbers-dont-lie-31-stats-show-that-australians-are-right-to-be-driving-on-left-infographic/
 


TIA

Deidre
0
Comment
Question by:dmullis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:Steve Bink
ID: 41789979
What is your question?
0
 

Author Comment

by:dmullis
ID: 41792924
My question is how do I get these 3 redirects to work in the .htaccess file?

1.Redirect 301 /henry-carus-2/?utm_source=yourlifechoices&utm_medium=email&utm_campaign=yourlifechoices-email-art06 /people/henry-carus/
2.Redirect 301 /henry-carus-2/?utm_source=yourlifechoices&utm_medium=email&utm_campaign=yourlifechoices-email-art01 /people/henry-carus/
3.Redirect 301 /numbers-don%e2%80%99t-lie-31-stats-show-that-australians-are-right-to-be-driving-on-left-infographic/ /blog/numbers-dont-lie-31-stats-show-that-australians-are-right-to-be-driving-on-left-infographic/
0
 
LVL 51

Accepted Solution

by:
Steve Bink earned 2000 total points
ID: 41794470
For (1) and (2), the Redirect directive does not handle query string manipulation.  For your purposes, you will need to use mod_rewrite.

For (3), verify the redirect trigger URL is exactly what the server is receiving.  Also, verify the target URL is accessible.  What do you see in your error/access logs when that redirect is triggered?
0
 

Author Closing Comment

by:dmullis
ID: 41797995
Hi Steve,

Thank you so much!

Deidre
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

598 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question