Title: 301 redirection
Last modified: September 1, 2016

---

# 301 redirection

 *  Resolved [peloche6613](https://wordpress.org/support/users/peloche6613/)
 * (@peloche6613)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/301-redirection-5/)
 * Hello you guys! First of all I’d like to say sorry if I’am not on the good thread
   but I guess I am….If my question does not fit the rule of this group, I’m sorry
   in advance, I will delete the question …
    SO! the thing is that I have an hosting
   + domain name with a wordpress installed on it. on the www repertory I have created
   a new directory named “website2”: inside I have created an other website and 
   I have bought the domaine name website2.com. What I wanted to do is to redirect
   website2.com to content of website1.com/website2
 * I tried many 301 redirection but nothing works
    I tried through the Hosting admin
   and the only thing I can do is an visible redirection … but i want an invisibile
   redirection …. 😉 any clue?
 * thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/301-redirection-5/#post-7636979)
 * The correct way to do what you’re asking is to simply forward the domain through
   your domain registrar (check their documentation or contact their support for
   specifics on this). This way, `website2.com` will simply go directly to `website1.
   com/website2`
 * However, the best way to do this would be to add the domain to your hosting account
   and map it to the `/website2/` directory (check your hosting provider’s documentation
   or contact their support for specifics on this), then get your hosting account’s
   name servers from your hosting provider, and set your domain’s name servers to
   them through your domain registrar (check your domain registrar’s documentation
   or contact their support for specifics on this). This way, `website2.com` will
   simply load the files in `/website2/` as `website2.com`
 *  Thread Starter [peloche6613](https://wordpress.org/support/users/peloche6613/)
 * (@peloche6613)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/301-redirection-5/#post-7636982)
 * Thank you for your time sir!
    Im going to try
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/301-redirection-5/#post-7636983)
 * You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘301 redirection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/301-redirection-5/#post-7636983)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
