homepage Welcome to WebmasterWorld Guest from 107.20.34.144
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Redirecting all blog URLs to forum root
Redirecting all blog URLs to forum root
Yogesh Sarkar

5+ Year Member



 
Msg#: 3929109 posted 9:54 pm on Jun 8, 2009 (gmt 0)

I had a wordpress blog earlier on my site, which is no longer in use and gets only a handful hits. Now I want to redirect all of its urls to the forum root i.e.:

example.com/blog/ or example.com/blog/post-1/ to site.com/forum/

If I use Redirect 301 /blog/ http://www.example.com/forum/ it tries to redirect post url from site.com/blog/post-/ to example.com/forum/post-1/, instead of example.com/forum/ (hope I am making sense).

How do I set it up the way I want it to work?

[edited by: jdMorgan at 11:00 pm (utc) on June 8, 2009]
[edit reason] example.com [/edit]

 

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3929109 posted 10:59 pm on Jun 8, 2009 (gmt 0)

Use the RedirectMatch directive instead of Redirect. See Apache mod_alias documentation for details.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved