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!

301 redirects using httpd.conf

Discussion in 'General Discussion' started by InteractM, Apr 15, 2015.

  1. InteractM

    InteractM Well-Known Member

    Apr 2, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    One of hosted websites was moved from an old CMS to another which uses different links structure. In that case owner of that site has added tons of 301 redirects to htaccess file but it causes site load time kind of slow.

    In that case next step is to move those redirects from htaccess file to httpd.conf but I'm not sure if it is possible to do for cPanel and how to keep them when Apache is going to be rebuilt or another domain/subdomain added to that account.

    I have found that documentation but still no clue if it is possible to do redirects that way.

    Thanks for any suggestions.
    #1 InteractM, Apr 15, 2015
    Last edited: Apr 15, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I don't believe moving the redirects to the Apache configuration file will increase the load time, but the following document explains how to modify the VirtualHost for individual domain names:

    Modify Virtualhost Containers With Include Files

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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