Redirection Of Domain To A Subdirectory »  Show posts from    to     

Icy Phoenix


English Chit Chat - Redirection Of Domain To A Subdirectory



looboss [ Fri 17 Sep, 2010 21:13 ]
Post subject: Redirection Of Domain To A Subdirectory
Hi, How does one redirect a domain to point to a sub directory of my site without it showing in the address bar?

I see some options in cpanel but it adds the directory at the end. as in http://www.mysite.com/SUBDIRECTORY/ I want it to show just http://www.mysite.com

Can i do it from the cpanel where my site is hosted? or do I have to configure it at the domain provider? as there it only gives the option of pointing the domain to name serves and nowhere else..

I could do it before from GoDaddy by masking a redirect but now I don't have that option, just wondered if there as a work around.


Yros [ Sat 18 Sep, 2010 04:25 ]
Post subject: Re: Redirection Of Domain To A Subdirectory
As far as I know, it's not with the CPanel you can do it but with the .htaccess
I think there are also some options with your host by using aliases but I'm almost sure that using the .htaccess way will achieve to do what you expect to but as I don't really know myself how it works I can't help you farther.


Joshua203 [ Sat 18 Sep, 2010 14:35 ]
Post subject: Re: Redirection Of Domain To A Subdirectory
I don t have a way to refresh my memory at the moment because I don t have access to any cpanel but if i remember correctly..

you should be able to add a redirect where you've added the domain in cpanel (parked, sub or addon), this would save you having to find out how and what to add exactly to htaccess because this way cpanel would write/add it for you


looboss [ Sat 18 Sep, 2010 20:05 ]
Post subject: Re: Redirection Of Domain To A Subdirectory
Joshua203 wrote: [View Post]
I don t have a way to refresh my memory at the moment because I don t have access to any cpanel but if i remember correctly..

you should be able to add a redirect where you've added the domain in cpanel (parked, sub or addon), this would save you having to find out how and what to add exactly to htaccess because this way cpanel would write/add it for you


I have tried it in cpanel but every option I choose it still shows the directory.

maybe I should add it as an add on domain.... not too sure what this does, I belive it creates a diferent account.. so maybe this may be the solution... as I said I'm not 100% sure of its function.


Joshua203 [ Sun 19 Sep, 2010 00:27 ]
Post subject: Re: Redirection Of Domain To A Subdirectory
http://webnet77.com/webstuff/parked-add-on-domain.html

if you really want to write it in htaccess yourself google a bit for .. htaccess rewrite


looboss [ Sun 19 Sep, 2010 14:10 ]
Post subject: Re: Redirection Of Domain To A Subdirectory
Joshua203 wrote: [View Post]
http://webnet77.com/webstuff/parked-add-on-domain.html

if you really want to write it in htaccess yourself google a bit for .. htaccess rewrite

#great! that explained it very well thanks.

can't belive I never looked into this before


looboss [ Tue 21 Sep, 2010 22:15 ]
Post subject: Re: Redirection Of Domain To A Subdirectory
yeap! done it all from cpanel as an addon domain and pointing to my subdirectory... works like a charm.

Now, for the rest,


Joshua203 [ Tue 21 Sep, 2010 22:26 ]
Post subject: Re: Redirection Of Domain To A Subdirectory
Good to hear, goodluck looboss




Powered by Icy Phoenix