Title: WP2 URL forwarding doesn&#8217;t work&#8230;
Last modified: August 18, 2016

---

# WP2 URL forwarding doesn’t work…

 *  [occalion](https://wordpress.org/support/users/occalion/)
 * (@occalion)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/wp2-url-forwarding-doesnt-work/)
 * I brought a domain name from Yahoo! recently. I want this domain to URL forwarding
   redirect to another domain’s subfolder, for example:
 * old domain name is:
    [http://www.olddomain.com](http://www.olddomain.com)
 * new domain name is:
    [http://www.newdomain.com](http://www.newdomain.com)
 * I redirect [http://www.newdomain.com](http://www.newdomain.com) to [http://www.olddomain.com/blog/](http://www.olddomain.com/blog/)
 * Then I modified the “Blog address (URI)” in option to [http://www.newdomain.com](http://www.newdomain.com)
   instead of [http://www.olddomain.com/blog/](http://www.olddomain.com/blog/) (
   change “WordPress address (URI)” will cause login error)
 * Now the problem is:
    the blog such as “[http://www.newdomain.com/?p=1&#8221](http://www.newdomain.com/?p=1&#8221);
   does not work, it will always redirect to start page.
 * I google and find this page:
    [http://wordpress.org/support/topic/38010?replies=4](http://wordpress.org/support/topic/38010?replies=4)
 * But when you modify permalinks in option, the start page will show “Error 404–
   Not Found”.
 * How can I slove this problem?

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

 *  [spencerp](https://wordpress.org/support/users/spencerp/)
 * (@spencerp)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/wp2-url-forwarding-doesnt-work/#post-344149)
 * I’m not sure if this will help you at all or not, but [Scotty](http://fucoder.com/code/permalink-redirect/)
   helped me with my problem. Before I had my Blog at:
 * domainname.com/blog
 * And then moved it to the root here:
    domainname.com
 * He told me to add this code within the .htaccess file under.
 * Manage => Files => Common =(Click On This Link To Edit It)=> .htaccess (for rewrite
   rules)
 * Add this:
    `RewriteRule ^blog/(.*) http://www.yourdomain.com/$1 [R,L]`
 * Right Under This:
    `RewriteBase /`
 * Of course replace that example url in there with your own. Then save it..make
   sure it’s writable and have one.
 * Then anyone coming in on the old location domainname.com/blog would automatically
   take them to that location under the straight domainname.com
 * But maybe it’s not what you’re looking for or something. At this time, mine works
   ok. But sometimes it’s quirky. I’ll have to check into it more then.. Good luck
   with your’s though. =)
 * spencerp
 *  [spencerp](https://wordpress.org/support/users/spencerp/)
 * (@spencerp)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/wp2-url-forwarding-doesnt-work/#post-344166)
 * Also, just as I said above, if you want the redirects to be from the domainname.
   com to the domainname.com/blog. I think you’d just have to reverse this line 
   of code here to read:
 * `RewriteRule ^/(.*) http://www.yourdomain.com/blog/$1 [R,L]`
 * Instead of:
 * `RewriteRule ^blog/(.*) http://www.yourdomain.com/$1 [R,L]`
 * I think, I’m not sure though…but would only make sense to me.. =) Just follow
   the same steps above, just reverse the code for whatever you’re doing. And you
   can also add in more lines of it as well, just using different directories..
 * Examples:
 * `RewriteRule ^blog1/(.*) http://www.yourdomain.com/$1 [R,L]`
 * `RewriteRule ^plog/(.*) http://www.yourdomain.com/$1 [R,L]`
 * `RewriteRule ^gallery/(.*) http://www.yourdomain.com/$1 [R,L]`
 * Depends on what directories you did have, and then removed. So they wouldn’t 
   just be getting a blog’s 404 page, they’d be redirected to the index page of 
   your choice. =) That’s what I did..
 * spencerp
 * Slaps self, I hope I’m posting legit stuff for you or whatever, cause I know 
   you’re referring to forwarding, and I’m posting about redirecting.. :/
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/wp2-url-forwarding-doesnt-work/#post-344167)
 * Spemcer, that’s different. What the OP wants – never really worked with WP. The
   OP talks about 2 domains: a new one which is redirected (never understood why
   ppl do this…) to olddomain/blog.
    Good luck; as I said I’ve never seen a working
   solution for it.
 *  [spencerp](https://wordpress.org/support/users/spencerp/)
 * (@spencerp)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/wp2-url-forwarding-doesnt-work/#post-344168)
 * moshu, yeah..I just added that in a P.S. while you were replying.. =) Slaps self
   again.. well, atleast it’s some hopefully legit code for someone to use sometime
   maybe, for redirects. =)
 * I’m going to bookmark this thread, just incase of future requests for redirects
   and what not.. =)
 * spencerp
 *  Thread Starter [occalion](https://wordpress.org/support/users/occalion/)
 * (@occalion)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/wp2-url-forwarding-doesnt-work/#post-344180)
 * Yeah, what I want is forward my new domain name to an old domain’s subfold. And
   it must be a masked forward. Thanks for your reply 🙂

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

The topic ‘WP2 URL forwarding doesn’t work…’ is closed to new replies.

## Tags

 * [forward](https://wordpress.org/support/topic-tag/forward/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 3 participants
 * Last reply from: [occalion](https://wordpress.org/support/users/occalion/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/wp2-url-forwarding-doesnt-work/#post-344180)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
