|
#1
|
|||
|
|||
|
Sorry if this has been asked before, but I couldn't find it when I did a search. Here's my basic question:
Here's how my new domain currently works: http://www.mydomain.com --> public_html/index.html Here's what I want: http://www.mydomain.com --> public_html/mydomain/index.html When I try using the cpanel's temporary url redirect to do the above, the redirect works. However, the url that shows up in the user's browser ends up being: http://www.mydomain.com/mydomain/ when I want it to remain "www.mydomain.com" Does anyone know how I can remedy this? Thanks in advance. |
|
#2
|
||||
|
||||
|
the redirection will bring visitor to the new url.
if you need to hide the following url. you can setup FRAME. And the main frame is always at the mydomain.com
__________________
Charles Gan Hostgatorreview.org webmaster
|
|
#3
|
|||
|
|||
|
Thanks for the reply. Is FRAME something I'd find in the cPanel?
To tell you the truth, I thought this request would have a fairly simple fix that I was just missing. For example, on my old webhost, there were two pulldowns: on the left was a list of your domain names, on the right was a list of all your directories and sub-directories. Select domain, select target directory, select 'OK' and that was it. I'll look around for more info on FRAME. Thanks again. |
|
#4
|
|||
|
|||
|
Dont use a FRAME! they are very anoying.
|
|
#5
|
|||
|
|||
|
I was unsure if the first response was suggesting a special cPanel script/feature called FRAME or if it was a suggestion to use an HTML frames.
If possible I'd rather not have to use an HTML frames workaround to get the correct URL to show up. For the life of me, I thought there'd be an easy cPanel feature I was just missing that would allow me to do this. |
|
#6
|
|||
|
|||
|
FYI, I ended up sending my question to HostGator's support email and promptly received a response from Nathalie. Nathalie changed my DocumentRoot settings on hostgator's end so that my domain now points to my subdirectory. Thanks, Nathalie!
|
|
#7
|
|||
|
|||
|
You could have tried an Alias in an .htaccess file like:
Alias / /usr/home/username/public_html/mydomain I don't know if it works for the root directory (/) |
![]() |
| Bookmarks |
| Thread Tools | |
|
|