Hi
i have this problem that my webhost has some temporary urls to use before domains are up and running, but sadly google found my temporary url and is now indexing this as my site, instead of my real url, example.com
i have been trying to point my temp. url (6ba7de768d8582b213bb3493f612f1773d9d4542.web7.host-example.com) to my site example.com with this .htaccess file:
RewriteEngine on
rewritecond %{HTTP_HOST} ^6ba7de768d8582b213bb3493f612f1773d9d4542.web7.host-example.com$
rewritecond %{REQUEST_URI} !http://www.example.com
RewriteRule (.*) http://example.com [L]
problem is that now i get a internal server error when i click on the temp url, but example.com and example.com works fine, how can i get the temp url via .htaccess to point at the real url? - problem lies in that both the temp. url and my domain points to the same location at my server, so it will be the same .htaccess people will "see" when they use the temp. url and the real domain.
anyone can help me with this?
[edited by: jdMorgan at 1:45 pm (utc) on Feb 9, 2010]
[edit reason] examplified [/edit]