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.

301 redirects using httpd.conf

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

  1. InteractM

    InteractM Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    133
    Likes Received:
    1
    Trophy Points:
    18
    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.

    Edit:
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    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.
     
Loading...

Share This Page