Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 07-26-2007, 12:29 PM
mc9000 mc9000 is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 4
Question A dumb question re: url redirects

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.
Reply With Quote
  #2  
Old 07-26-2007, 01:04 PM
charlesgan's Avatar
charlesgan charlesgan is offline
Swamp Croc
 
Join Date: Mar 2007
Location: www.hostgatorreview.org
Posts: 350
Default Re: A dumb question re: url redirects

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
Reply With Quote
  #3  
Old 07-26-2007, 01:25 PM
mc9000 mc9000 is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 4
Default Re: A dumb question re: url redirects

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.
Reply With Quote
  #4  
Old 07-26-2007, 01:33 PM
Sam Sam is offline
Emperor Croc
 
Join Date: Jan 2007
Location: /bin/false
Posts: 3,059
Default Re: A dumb question re: url redirects

Quote:
Originally Posted by charlesgan View Post
if you need to hide the following url. you can setup FRAME. And the main frame is always at the mydomain.com
Dont use a FRAME! they are very anoying.
Reply With Quote
  #5  
Old 07-26-2007, 01:46 PM
mc9000 mc9000 is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 4
Default Re: A dumb question re: url redirects

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.
Reply With Quote
  #6  
Old 07-26-2007, 03:22 PM
mc9000 mc9000 is offline
Hatchling Croc
 
Join Date: Jul 2007
Posts: 4
Default Re: A dumb question re: url redirects

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!
Reply With Quote
  #7  
Old 07-27-2007, 03:27 PM
steve_a steve_a is offline
Baby Croc
 
Join Date: May 2007
Posts: 61
Default Re: A dumb question re: url redirects

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 (/)
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 10:54 PM.

 
Forum SEO by Zoints