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.

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:
    1
    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,279
    Likes Received:
    8
    Trophy Points:
    38
    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:
    1
    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:
    7
    Trophy Points:
    0
    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:
    16
    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>
     
  6. patoy

    patoy Member

    Joined:
    Apr 11, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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