I have a SUSE server running and it is configured allow users to login with their windows credentials. I have apache with user directories turned on. So that users could upload their sites to the public_html directory. The problem is that the URL to access their sites is: 192.168.1.1/~DOMAIN\windowsusername/

The backslash is undesirable in a URL. How can I map or rewrite the URL so that 192.168.1.1/~windowsusername would take them to what is currently 192.168.1.1/~DOMAIN\windowsusername/ ?

link|improve this question
Details about how, exactly, you've configured your SuSE server would probably help. – womble Aug 11 '11 at 17:54
feedback

1 Answer

I guess something like this should do it. Not 100% sure how the backslash will behave in the replacement, may require some tweaking (turning \ into \\).

RewriteEngine on
RewriteRule ^/~([^/]*)/(.*)$ /~DOMAIN\$1/$2
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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