Redirecting only the home page

Permalink
Hi! I've got two sites,www.www.carmelindianapolisvet.com... andhttp://www.leospetcare.com. The former is holding my Wordpress page (/blog) and my photos (/photos), that are shown in iFrames on the latter.

When someone tries to visit carmelindianapolisvet.com, I'd like them to be redirected to leospetcare.com, but I don't want to mess up my blog or photos (which is what happens if I redirect the whole site).

Since I don't have a clue what I'm doing here, can anyone help me?

 
zoiig replied on at Permalink Reply
zoiig
So, I'm assuming from your post you're no longer supporting your blog - but want the photos.

1.) It would actually be easier if you're getting rid of the blog to just copy the images from the wordpress: wpcontent > themename > uploads folder to the new site then to simply hide the old site....

2.) if you're going to keep the old site then a simply "meta-refresh" in the meta of your header file will do the trick. This uses javascript in the header to redirect the browser to the new site.

3.) Additionally if you're running php / apache and rewrite rule in the ".htaccess" file could be use to rewrite the url to the new one ( redirecting them ) but this would only work if they are both on the same server and virtual host.

4.) You'd get more control and SEO / social media pull by hosting external images on something like Flikr or Photobucket - and there are a number of API's that can manages these files to create galleries and light boxes fairly easily.
gregorymagnusson replied on at Permalink Reply
Hiya! Thanks for your message!

Actually, the problem was that the people who made leospetcare.com for me say they can't host a wordpress page. So I had to create carmelindianapolisvet.com to do that. I'm using zenphoto for my pictures, can I use that with your Flikr suggestion? Anyways, "CIV".com/blog needs to survive, as does "LPC".com, but I only want one home page.

All of your other suggestions sound spectacular, except I have no idea how to perform any of those operations. I'm just a dumb veterinarian. Can you choose either #2 or #3 for me and tell me how to do it?
zoiig replied on at Permalink Reply
zoiig
Another option: Find out what your current host can run, php? apache? If so you could install wordpress on that server with the MYSQL database hosted on the other server. In fact you could have many databased site running on many different host using that one database.

I'll look into the zenphoto, new one for me...

The meta refresh is simple, in the page - and just that page - that you want people to automatically be redirected from add the following between the "head" tags.

<META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://www.mynewsite.com">
gregorymagnusson replied on at Permalink Reply
OK, I'm with you so far. Where in my concrete5 dashboard do I access those head tags you're talking about?
Fernandos replied on at Permalink Reply
Fernandos
ugh.. meta redirects are ugly..

Do you temporarily redirect the urls or permanently??

I just guess you want to give up the domains permanently, so a permanent redirect makes sense.
If you don't know what I'm talking about, you can read this:
http://www.stepforth.com/blog/2008/redirects-permanent-301-vs-tempo...

1. create a .htaccess file in your site root of carmelindianapolisvet.com
2. Put this code into it and save it
3. try if (www.)carmelindianapolisvet.com redirects you to leospetcare.com. If not feel free to report back.

RewriteEngine On
Options +SymLinksIfOwnerMatch
RewriteCond %{HTTP_HOST} ^www\.carmelindianapolisvet\.com$    [NC]
RewriteRule ^(.*)$       http://leospetcare.com$1   [R=301,L]


I think that should do it. I'm not sure if that breaks ups things with your iframed photos, but I don't think so. Still I don't give any guarantee.