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!

Assigning a domain to a particular directory

Discussion in 'General Discussion' started by patoy, Apr 11, 2007.

  1. patoy

    patoy Member

    Joined:
    Apr 11, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Is it possible to assigni a domain to a particular directory?

    and one more question, how do I frame redirect a page in cpanel? i have browsed all through the cpanel options and i wasn't able to find the option.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, just create an add-on domain through the cPanel interface.

    You currently cannot frame redirect a page using the cPanel interface. You can do a HTTP redirect though by using the "Redirects" feature in the cPanel interface (this is in the "Domains" Feature Box in the X3 theme/cPanel 11)
     
  3. patoy

    patoy Member

    Joined:
    Apr 11, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    will there be any other option to use frame redirect? is it possible in htaccess?
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    8
    Trophy Points:
    193
    Yes, you could use .HTACCESS with mod_rewrite commands or
    just drop in an "index" file in the folder where you want the
    redirect and load up the target in a frame.
     
  5. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    You can create an index.html with the following code for frame redirect:

    Code:
    <FRAMESET ROWS="*,0" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0>
    <FRAME SRC="http://somewhere/you/want/to/redirect.php" NORESIZE>
    </FRAMESET>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. patoy

    patoy Member

    Joined:
    Apr 11, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    this is a bit of a problem. i do not know anything about htaccess.

    all want to achieve is this one. example: i want this http://www.mydomain.com/forum to be redirected to http://www.forum.mydomain.com

    what would be the specific commands to be used in htaccess.

    and also if the index page is php file (index.php) how would i do that to add code?

    because this code applies only to index.html files right?

    <FRAMESET ROWS="*,0" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0>
    <FRAME SRC="http://somewhere/you/want/to/redirect.php" NORESIZE>
    </FRAMESET>
     
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