The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_rewrite help: change the /~user/ to /user/?

Discussion in 'General Discussion' started by tpphost, Aug 10, 2008.

  1. tpphost

    tpphost Member

    Joined:
    Aug 3, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Michigan
    Have what I thought would be an easy problem to resolve, but been struggling to find some working code.

    I have a dedicated server with WHM & CPANEL 11 installed, plus a shared SSL which all of my hosting clients shared.

    CURRENTLY:
    For secure shows as something like https://hostname.com/~username/ which a customer can use for their site.

    For unsecure of course, or reseller, it shows as http://hostname-or-reseller.com/~username/

    My question is how can I successfully do a rewrite on this to remove the ~ from the URL string and still have it work properly? So these URLs...
    https://hostname.com/~username/
    http://hostname-or-reseller.com/~username/

    Would become these now..
    https://hostname.com/username/
    http://hostname-or-reseller.com/username/

    Any help on this is greatly appreciated.
     
    #1 tpphost, Aug 10, 2008
    Last edited: Aug 10, 2008
  2. rvskin

    rvskin Well-Known Member
    PartnerNOC

    Joined:
    Feb 19, 2003
    Messages:
    400
    Likes Received:
    1
    Trophy Points:
    18
    I believe that it is impossible. ~ is a mean for mod_userdir to search for a user.
     
Loading...

Share This Page