Wednesday, August 28, 2019

.htaccess - Unexpected behavior with htaccess Redirect 301

I have the following in my .htaccess file-



Redirect 301 / http://www.foo.com/south-carolina-real-estate/
Redirect 301 /related/aiken-sc.htm?tkn=MXNDbGxQjEAKEwj0qrmMz_OYAhUdBGoKHY43MKwYASAFMKCTDDgNUKCTDFDLuosP http://www.foo.com/south-carolina-real-estate/
Redirect 301 /related/aiken-sc.htm http://www.foo.com/south-carolina-real-estate/
Redirect 301 /related/spartanburg.htm?tkn=0bzl_HmfIxIKEwj0qrmMz_OYAhUdBGoKHY43MKwYASADMKCTDDgNUKCTDFDLuosP http://www.foo.com/south-carolina-real-estate/
Redirect 301 /related/spartanburg.htm http://www.foo.com/south-carolina-real-estate/


But when I visit http://www.url.com/related/aiken-sc.htm I get the following URL in the browser-




http://www.foo.com/south-carolina-real-estate/related/aiken-sc.htm



Not sure what the problem is, this works fine on other sites...?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...