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

I need to redirect only http://shop.test.com to http://www.test.com/fedex-orders/

Just homepage. Nothing else. ie http://shop.test.com/?page=blog should NOT redirect.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

This should be what you want

RedirectMatch permanent ^/$ http://www.test.com/fedex-orders/
share|improve this answer
    
getting error on configtest –  Abraham Van Helsing Mar 25 '13 at 6:35
    
That's because this is an Apache configuration directive. –  Michael Hampton Mar 25 '13 at 11:40
location = / {
    return 301 http://www.test.com/fedex-orders/;
}
share|improve this answer

Your Answer

 
discard

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.