Freelancer.com

Go Back   Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming
Register Blogs Social Groups CalendarHelp Desk

Reply
LinkBack Thread Tools
Unread 20th February 2013, 07:28 AM   #1
HyperActive Warrior
War Room Member
 
belgianguy's Avatar
 
Join Date: 2009
Posts: 424
Thanks: 95
Thanked 56 Times in 48 Posts
Default Wordpress: how to redirect all pages but keep access to admin area

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!
belgianguy is offline   Reply With Quote
Unread 21st February 2013, 08:46 PM   #2
Content Guru
War Room Member
 
TheContentAuthority's Avatar
 
Join Date: 2009
Location: Pittsburgh, PA US
Posts: 1,400
Thanks: 49
Thanked 362 Times in 321 Posts
Default Re: Wordpress: how to redirect all pages but keep access to admin area

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



We customize your blog, eBook, press release and backlink content with your message.

TheContentAuthority is offline   Reply With Quote
Unread 22nd February 2013, 08:48 AM   #3
Grouchy Old Geezer
War Room Member
 
Kirk Ward's Avatar
 
Join Date: 2006
Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 1,436
Thanks: 279
Thanked 62 Times in 47 Posts
Default Re: Wordpress: how to redirect all pages but keep access to admin area

Quote:
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

"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)
Kirk Ward is offline   Reply With Quote
Reply

  Warrior Forum - The #1 Internet Marketing Forum & Marketplace > Warrior Support Forums > Programming

Bookmarks

Tags
access, admin, area, pages, redirect, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:38 PM.