Solved

.htacess file 301 redirects that are strange

Posted on 2016-09-07
4
55 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
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

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…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 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