Wordpress: how to redirect all pages but keep access to admin area

2 replies
I have a domain with wordpress installed on it that does nothing else but post images to several social sites. This site creates posts from images and these posts are then shared on these various social sites. But when people click on these images (for instance on pinterest), they are taken to this image domain, but I want them to be taken to my authority site.

So, I want all posts on myimagesite.com to be redirected to the homepage of myauthoritysite.com. But I still want access to the CMS of myimagesite.com so I can add new images every few months. And all new image posts that are published daily should also automatically be redirected to the homepage of myauthoritysite.com.

Anyone got an idea on how to do this (preferably without using a plugin to reduce server load).

Thank you!
#access #admin #area #pages #redirect #wordpress
  • Belgianguy,

    Have you tried doing it via a server configuration file like .htaccess? You have to be running Apache or something else that supports the use of this file. Enter a common directive that would match any image domain created and send them all to your home page.

    More info here,

    Redirect to a Different URL using .htaccess:*Web Site Maintenance:*Tools and Guides:*IU Webmaster:*Indiana University

    Hope that helps,

    Shawn
    Signature
    Outsource to the experts...

    We customize your Blog, eBook, Press Release and Sale Copy content with your message.

    {{ DiscussionBoard.errors[7771079].message }}
  • Profile picture of the author Kirk Ward
    Originally Posted by belgianguy View Post

    Anyone got an idea on how to do this (preferably without using a plugin to reduce server load).
    The redirect plugin is the easiest, but, you can also edit your theme single.php file to include a redirect containing a variable that represents the taregt url. Then pull the target url fron a post meta field.

    Then, when you create each post, you add a custom field with the value set to the target url.

    Might add an if statement so that if the custom field is blank, the redirect does nothing.

    Kirk
    Signature
    "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice."

    Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781)
    {{ DiscussionBoard.errors[7772973].message }}

Trending Topics