1

I am using Apache 2.4 on RHEL8 to give users there own web pages. Right now the URL looks like example.com/~username. Is there a way to setup Apache and mod_userdir so that the ~ is not used? I'd like for the URLs to look like example.com/username

Thank you,

Mike

0

No, but you can roll your own:

AliasMatch ^/(user1|...|usern)(/.*|$) /home/$1$2

See AliasMatch. If that doesn't meet your needs, you can do it more flexibly with mod_rewrite.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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