Help required to create re-direct?

2 replies
Hey there,

I just uploaded a new site into a sub-folder of a new domain.

Now I need to find out how to create a re-direct so that people can easily find the domain name without having to type in the domain name plus the subfolder name.....

So how do I do this:

Domain = www.mydomain.com/subfolder re-direct to www.mydomain.com

I have looked at the Knowledge base provided by my hosting company but I still can't make head or tail of what they say....

I'm off to the dentist - I will check in later...

Regards

Greg
#create #redirect #required
  • Profile picture of the author Chris Thompson
    google "php redirect". Create an index.php file that contains the php command for redirecting. I can't remember what it is, any google search will give you the one-line code in a second of effort.

    Save the index.php and put it in the folder where you want the redirect to occur. SO put it in your subfolder and then any traffic which does there will be redirected.

    That's one easy way.
    {{ DiscussionBoard.errors[697598].message }}
    • Profile picture of the author Dellco
      Redirect 301 /your-page.html http://www.your-domain.com/
      Try this and see if it works.

      Just put that line of code into your site htaccess file.

      This is assuming the site is the same, ie the domain name, and you are just redirecting a page within the site to the main domain name.
      {{ DiscussionBoard.errors[697700].message }}

Trending Topics