Hi, I am a bit confused with main and parked domains as well as how google witll spider them. I have 2 domains... 1.mydomain.com 2.ourdomain.com The mydomain.com is the actual hosted domain having the website and stuff. ourdomain.com is a parked domain within the mydomain.com cpanel account and when browsed, shows the mydomain.com website. My question is, how would ourdomain.com be spidered by google and other search engines.. Will it be healthy and will a PR be assigned to the ourdomain.com domain?
You're going to want to to a 301 redirect from ourdomain.com to mydomain.com. The way you have it Google is going to see it as duplicate content. If you do a 301, the PR of ourdomain.com will pass on to mydomain.com.
Thanks.. Can you tell me how to do a 301 redirect? Do i need to create a new cpanel account and host the ourdomain.com there?
It's easy. Park ourdomain.com on the mydomain.com account (this is done in cpanel). Then you'll want to update your .htaccess file (a file at the root level). If you don't see an .htaccess file then create one (it's named just ".htaccess", there's nothing before the period). If you're using a CMS you'll want to seek support through the CMS creator because they often have an .htaccess file. So, put the following in the .htaccess file (replacing your domain): RewriteEngine on rewriteCond %{HTTP_HOST} ^(www\.)?ourdomain\.com$ [NC] rewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L] Code (markup): That's it.
Thanks a lot. I put that code in and now it redirects to mydomain.com whenever i type ourdomain.com Talker.
I've never tried that. Try just adding an "s" to the destination: RewriteEngine on rewriteCond %{HTTP_HOST} ^(www\.)?ourdomain\.com$ [NC] rewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L]/ Code (markup):
I am already using that. It does redirect http://www.ourdomain.com to https://www.mydomain.com, but it does not work for http://www.mydomain.com to https://www.mydomain.com I'm sorry, but i don't want to disclose the domain on this thread. Its a normal practice to hide domains the way i did. I hope you can help me with my small issue.
Try this RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R] Code (markup):
Tried that.. doesn't seem to work. But this piece of code worked. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] Code (markup): Thanks to everyone on this thread who helped me.