1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WP 301 redirect excluding admin area

Discussion in 'Blogging' started by devde, Sep 28, 2013.

  1. devde

    devde Registered Member

    Joined:
    Jan 5, 2013
    Messages:
    76
    Likes Received:
    23
    Hello,

    does anyone have the code to do a .htaccess 301 redirect of a wordpress site but exluding the admin area?

    I want the whole wp website (posts, pages, tags, categories, etc.) to be redirected to another website but I still want to be able to login in the admin area and publish posts.
     
  2. hackerzonline

    hackerzonline Newbie

    Joined:
    Sep 19, 2011
    Messages:
    21
    Likes Received:
    4
    Occupation:
    blissfully unemployed
    Location:
    India
    why dont you shift the the current site to the new domain name so that you wont have to deal with all these mess.

    It will solve the issues of redirection and you can login and update posts. :)

    Let me know if you need any help in migration
     
  3. devde

    devde Registered Member

    Joined:
    Jan 5, 2013
    Messages:
    76
    Likes Received:
    23
    well...because I don't need to migrate the site.

    what I need is the kind of redirect I explained, probably just by excluding the wp-admin folder would work...how this can be done with htaccess?

    EDIT: all the links pointing to the wp site would be redirected to a single page website
     
    Last edited: Sep 28, 2013