Jump to content

Recommended Posts

Posted

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?

Posted

Hi Slacker,

 

Welcome to the forums :clapping:

 

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.

Posted
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?

 

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!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...