Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Here's what my .htaccess file looks like:

Options +FollowSymlinks
RewriteEngine on
#rewritecond %{http_host} !^abc.com/* [nc]
#rewriterule ^(.*)$ http://www.xyz.com/$1 [r=301,L]

But when I check the headers for abc.com, I get:

Status: HTTP/1.1 302 Object moved

abc.com and xyz.com are hosted on the same server; xyz.com is the new domain name.

Is there something superseding the original .htaccess? I'd asked the hosting company to do the redirects, and they say that they used their 'park domain' functionality to do it. But I'm still not sure how that could prevent the .htaccess rules from being followed.

share|improve this question

1 Answer 1

The # at the start of those lines means that they're commented out. Something else is doing the redirect.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.