We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

htaccess redirect including trail

jccyber
jccyber asked
on
Medium Priority
482 Views
Last Modified: 2012-05-11
Hello Experts.

This may be easy! I am stuck on a HTACCESS redirect.
Here is the PHP link that I am trying to redirect.

http://domain.com/subfolder/results.php?a=basic&b=sfr&c=code[]=25911

This htaccess code is working fine at the exception of code[]=25911 I am getting code%255B%255D=25911

RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^results\.php\/?(.*)$ "http://sub.domain.com/folder/subfolder/results.php" [R=301,L]

What am I missing?

Comment
Watch Question

Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
Thanks! This is perfect
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.