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

Mike
  • 41
  • 2
  • 8

1 Answers1

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.

Andrew Schulman
  • 8,561
  • 21
  • 31
  • 47