Solved

.htacess file 301 redirects that are strange

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now