WP 301 redirect excluding admin area

devde

Registered Member
Joined
Jan 5, 2013
Messages
76
Reaction score
24
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.
 
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
 
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:
Back
Top