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.

SOLVED How to host the Primary Domain from a subfolder without showing subfolder in browser url

Discussion in 'General Discussion' started by AppleJukes, Aug 4, 2017.

Tags:
  1. AppleJukes

    AppleJukes Registered

    Joined:
    Aug 4, 2017
    Messages:
    3
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Malaysia
    cPanel Access Level:
    Website Owner
    Hi, I tried to look for solutions, but i couldn't get it. i hope anybody can help me to solve my issue.

    i have a primary website domain : "example.com

    i install wordpress inside the folder : main

    the website can be access by visiting : "http://www.example.com/main/index.php

    What i want to do is to remove the subfolder name from url, so when i access the link, it will show only "http://www.example.com/index.php" so the subfolder didn't appear in the url.

    i tried this code bellow, but it still show the folder in the url browser.
    Anybody can help me to resolve my problem? really appreciate your help :)
    Thank you.
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    261
    Likes Received:
    77
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,297
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can follow the instructions under the "Moving Directories On Your Existing Server" section on the following WordPress document:

    Moving WordPress « WordPress Codex

    Let us know if that helps.

    Thank you.
     
  4. AppleJukes

    AppleJukes Registered

    Joined:
    Aug 4, 2017
    Messages:
    3
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Malaysia
    cPanel Access Level:
    Website Owner
    cPanelMichael likes this.
  5. AppleJukes

    AppleJukes Registered

    Joined:
    Aug 4, 2017
    Messages:
    3
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Malaysia
    cPanel Access Level:
    Website Owner
    Thank you, problem solve :)
     
    cPanelMichael likes this.
Loading...

Share This Page