Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    168
    I believe that it is impossible. ~ is a mean for mod_userdir to search for a user.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice