Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following in my .htaccess file-

Redirect 301 /
Redirect 301 /related/aiken-sc.htm?tkn=MXNDbGxQjEAKEwj0qrmMz_OYAhUdBGoKHY43MKwYASAFMKCTDDgNUKCTDFDLuosP
Redirect 301 /related/aiken-sc.htm
Redirect 301 /related/spartanburg.htm?tkn=0bzl_HmfIxIKEwj0qrmMz_OYAhUdBGoKHY43MKwYASADMKCTDDgNUKCTDFDLuosP
Redirect 301 /related/spartanburg.htm

But when I visit I get the following URL in the browser-

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

share|improve this question

migrated from Nov 19 '09 at 5:08

This question came from our site for professional and enthusiast programmers.

Try using the Web Sniffer to follow what's going on. The Web Sniffer does not follow redirects: it shows you all the HTTP headers as they are sent.

One thing to bear in mind is that redirects should use the HTTP header "Location: ".

share|improve this answer

Rearrange your redirects to be most specific to least specific; Redirect will match any path element beginning with your match so it never gets past the first redirect directive.

Redirect 301 /some/full/path/file.html
Redirect 301 /some/full/
Redirect 301 /
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.