Forum Moderators: phranque
ie: example.org/hello.php shows exactly the same content as example.com/hello.php - and Google has some pages indexed and ranking under the one domain, and others under the other domain.
The server setup is Apache / Cpanel - so in the control panel I can see the two parked domains pointing to the same folder.
Mod rewrite is enabled
I am sure there should be some way in the domain root htaccess file that I can 301 redirect all the pages on example.org to the same page on example.com.
I would probably be able to work some way around this by setting up a new server account, changing the nameservers of example.org to point to this new account, and there add an htaccess file to do the redirect to example.com, but if someone knows a simple way to do this using the current setup I have, that would be very welcome...
Also, a WebmasterWorld search on "canonical domain rewriterule" and "canonicalize domain rewriterule" will bring up hundreds of threads on this subject.
Jim