Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am configuring an apache server to change URLs from [http://(IP)/users/testuser/test.html] to [http:/(IP)/~testuser/test.html]

This works fine, as such

RewriteEngine On  
RewriteRule ^/users/(.*)$ /~\$1 [R]

However when someone does [https://(IP)/users/testuser/test.html] it does not change it to [https:/(IP)/~testuser/test.html]

Any suggestions?

share|improve this question
    
Okay, figured it out - you have to add the rule to a virtual host directive in the ssl.conf file instead of where I was trying to put it. –  roger34 May 18 '12 at 0:54
    
Please add this as a proper answer, and then accept it to close the question. –  user3463 May 18 '12 at 5:58

1 Answer 1

You have to add the rule to a virtual host directive in the ssl.conf file instead of where you were trying to put it.

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.