Solved

.htacess file 301 redirects that are strange

Posted on 2016-09-07
4
76 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 50

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 50

Accepted Solution

by:
Steve Bink earned 500 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 82
Using random iterations in password hashing.  Good or Bad? 4 98
PHP in Apache server 20 106
WebSite Direction 1 79
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

739 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