slacker Posted February 18, 2005 Posted February 18, 2005 Hi guys! I seem to have a problem with trying to "redirect" one URL to another. For example, http://domain.com/sub/ will load when i access http://domain.com/. The main thing is that I do not want the URL to be redirected from http://domain.com/ to http://domain.com/sub/ I have tried using the redirect function in cpanel but it redirects http://domain.com/ to http://domain.com/sub/. I think that it is something associated to .htaccess but I can't be sure and how to go about doing it. I hope someone is kind enough to enlighten me on this please? Quote
TCH-Andy Posted February 18, 2005 Posted February 18, 2005 Hi Slacker, Welcome to the forums Can you let us know the domain names - and we'll take a look. If you don't want them shown here - please feel free to PM one of us. Quote
TCH-Don Posted February 18, 2005 Posted February 18, 2005 Welcome to the Family and your new home! We really are like family here. So if you need anything, just ask your new family! We love to help Quote
Joaquin Posted February 18, 2005 Posted February 18, 2005 Hi guys! I seem to have a problem with trying to "redirect" one URL to another. For example, http://domain.com/sub/ will load when i access http://domain.com/. The main thing is that I do not want the URL to be redirected from http://domain.com/ to http://domain.com/sub/ I have tried using the redirect function in cpanel but it redirects http://domain.com/ to http://domain.com/sub/. I think that it is something associated to .htaccess but I can't be sure and how to go about doing it. I hope someone is kind enough to enlighten me on this please? <{POST_SNAPBACK}> I think what you are asking about is a meta redirect. Open the code for index.htm ( or whatever your home page is called ) and add the following line some place in between the <head> and </head> tags: <meta http-equiv="REFRESH" content="10; URL=http://www.domain.com/sub/"> Changing the URL obviously changes the place you are redirected to and changing the "10" will change how many seconds are waited before the redirect takes place. Does this help? oh and welcome to the forums!! Quote
TCH-RobertM Posted February 18, 2005 Posted February 18, 2005 Hi Slacker , Welcome to the Family and Forums Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.