I am trying to redirect my university webpage with an .htaccess file:

Redirect 301 /~foo/ http://mynewdomain.com/

However, instead of taking me to http://mynewdomain.com , it appends the ~foo so that it redirects to http://mynewdomain.com/~foo.

How does one make it to redirect to only http://mynewdomain.com?

PS: Actually, I believe by default it redirects to http://mynewdomain.com , maybe there is a setting our admin has changed, and I need to revert it?

I have also tried other combinations like:

Redirect 301 / http://mynewdomain.com/

Redirect 301 /~foo http://mynewdomain.com/

but they all redirect to http://mynewdomain.com/~foo

link|improve this question
Use wget -S to see what's actually being thrown back at you. – Ignacio Vazquez-Abrams Jul 27 '10 at 22:03
It looks like this is related to the UserDir setting in Apache. – ustun Jul 27 '10 at 22:03
1  
Redirect 301 /~foo mynewdomain.com works actually, there was some problem with caching. Make sure you try this in a new browser if the redirection doesn't work. – ustun Mar 10 '11 at 12:52
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.