Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on Redirecting old blog addresses to new blog home page in the Website Management forum
This is driving me nuts. I've tried all sorts of variations of redirects with no success. I'm trying to redirect ALL old URLs like this: ...

  1. #1
    Loyal Client snowcreative's Avatar
    Join Date
    Mar 2003
    Location
    NY
    Posts
    101

    Redirecting old blog addresses to new blog home page

    This is driving me nuts. I've tried all sorts of variations of redirects with no success. I'm trying to redirect ALL old URLs like this:

    http://blog.mysite.org/2011/03/18/ne...ces-3-18-2011/

    to this:

    http://mysite.org/blog/

    So, whatever the old page, no matter what comes after "blog.mysite.org", it should redirect to just the new blog home page, not to any specific page in the new blog.

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Try this?
    Create a file .htaccess in the top blog.mysite.org directory containing:
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST}   ^blog.mysite\.org [NC]
    RewriteRule ^(.*)         http://mysite.org/blog/ [L,R=301]
    The first line needs to be in the .htaccess file (and executed) somewhere before the next two, so if it's already in there, no need for it again.

    The file should have permissions of 644 that's (rw-r--r--)

    Good luck
    Last edited by Ron; 09-26-2011 at 04:20 PM. Reason: typo in code
    Good luck

  3. #3
    Loyal Client snowcreative's Avatar
    Join Date
    Mar 2003
    Location
    NY
    Posts
    101
    Thanks. The key, though, was putting this redirect BEFORE all the Wordpress-specific redirects that were already in the .htaccess file. It's working now.

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Ha! Good one!
    Good luck

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •