I'm newbie in this domain handling with mod_rewrite. Usually use Cpanel. but we move to other host not support cpanel.
I have a site that running fine. But now we take other domain extension for this site.
Current site : www.domain.co.uk pointing to folder1
new domain : www.domain.com pointing to folder2
So, i have try rewrite with sample from my host support, but not what we expected.
we use this .httaces in folder2 that used by "new domain" :
- Code: Select all
Options -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.co.uk/index.php? [R=301,L]
The url keep showing www.domain.co.uk. We need the www.domain.com overwrite the url. Please if this possible for our Oscommerce with standard URL (not SEO_friendly URL mod, maybe we learn it first.. )
Then another question, if its possible, does it affected to the payment gateway? Security or lost a connection between site and gateway (paypal etc)...
Thanks... Nice forum! found it in Google [/code]