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!

AliasMatch question

Discussion in 'General Discussion' started by ozzieonline, Jan 16, 2013.

  1. ozzieonline

    ozzieonline Well-Known Member

    Dec 20, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    I would like to use a HTTP_HOST variable in AliasMatch

    Instead of this:

    AliasMatch ^/content/domain/(.*)$ /home/ozzieonline/public_html/content/domain/$1

    I want to do this:

    AliasMatch ^/content/domain/(.*)$ /home/ozzieonline/public_html/content/domain/%{HTTP_HOST}/$1

    However, I can't get it to work. Does anyone know how to fix it?

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