
May 11th, 2008, 05:26 AM
|
|
Contributing User
|
|
Join Date: Jul 2007
Posts: 224
  
Time spent in forums: 2 Days 4 h 17 m 4 sec
Reputation Power: 3
|
|
Hi MoonDoggy Dog.
Sorry I'm being thick.
Both files use the same directory but for different sites. Is that correct?
Are both files are on the same server or different ones?
Sorry I'm being thick, and the booze from last night isn't helping
But if they are on the same server something like this should do it in your .htaccess file, I don't use https in my rewrites nor ever need to include them so I'm not 100% sure this will work TBH but my logical guess goes like this -
Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} !www\.yourSite\.com
RewriteRule ^(.*)$ http://www.yourSite.com/$1 [R=301,L] |
What this does is redirect everything to your http www. version of your site, change the RewriteRule if you need the destination URL to be different. As in the non www. version or a different domain extention.
This will rewrite everything that is not www.yourSite.com to www.yourSite.com though so make sure you need to do this in your case other wise you may cause your self some grief afterwards.
I would say though that Tolerant is right, if you are not use to rewriting and redirection get your hosting to do it for you, I wouldn't start testing on live pages for your first time. If they screw up it's their a-s-s and not yours. Well not so much yours
Jaz
|