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!

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:
    674
    Likes Received:
    224
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,793
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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

  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