?
Solved

.htacess file 301 redirects that are strange

Posted on 2016-09-07
4
Medium Priority
?
101 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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…
Suggested Courses

777 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