Assigning a domain to a particular directory

patoy

Member
Apr 11, 2007
5
0
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Is it possible to assigni a domain to a particular directory?
Yes, just create an add-on domain through the cPanel interface.

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.
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)
 

patoy

Member
Apr 11, 2007
5
0
151
will there be any other option to use frame redirect? is it possible in htaccess?
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
will there be any other option to use frame redirect? is it possible in htaccess?
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.
 

Murtaza_t

Well-Known Member
Jan 24, 2005
474
0
166
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>
 

patoy

Member
Apr 11, 2007
5
0
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>