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.

Setup Rewrite Rules for different websites

Discussion in 'General Discussion' started by tomjung, Jul 21, 2014.

  1. tomjung

    tomjung Member

    Joined:
    Jul 21, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all! Complete newb here so bare with me. We just decided to move our websites from our own dedicated servers to a new colo where we are now on a VPS. I am just about finished setting up our first website, but need to setup the rewrite rules we had previously.

    We have multiple sites and I need to be able set the rewrite rules up separately for each website. I can copy and paste my rewrite rules over, I just haven't got a clue where to put them. I've read a few post that mentioned putting them in a .htaccess file, and if that is the case, where would I put that .htaccess file on the server?

    Thanks!
     
  2. spanna

    spanna Registered

    Joined:
    Jul 21, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ideal place would be the root directory of the website, which is under: /public_html/
     
  3. tomjung

    tomjung Member

    Joined:
    Jul 21, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Ha! That was way easy... Thanks, I put it in there and it's working!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page