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.
Redirection Of Domain To A Subdirectory
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.
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.
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
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
Subject: Re: Redirection Of Domain To A Subdirectory
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 wrote: [View Post]
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.
Subject: Re: Redirection Of Domain To A Subdirectory
http://webnet77.com/webstuff/parked-add-on-domain.html :wink:
if you really want to write it in htaccess yourself google a bit for .. htaccess rewrite
if you really want to write it in htaccess yourself google a bit for .. htaccess rewrite
Subject: Re: Redirection Of Domain To A Subdirectory
#great! that explained it very well thanks.
can't belive I never looked into this before :)
Joshua203 wrote: [View Post]
#great! that explained it very well thanks.
can't belive I never looked into this before :)
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,
Now, for the rest,
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1396s (PHP: 12% SQL: 88%)
SQL queries: 14 - Debug Off - GZIP Enabled