Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
I currently have a sub domain setup pointing towards another url;
i.e
shop.mydomain.com redirectst to www.mydomain.com/shopaddress
The redirect works well, but id like to keep the shop.mydomain.com in the addressbar without the url changing, so the visitor will only ever see shop.mydomain.com
Is there a DNS entry I can create to enable this?
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
CNAME
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
I have two inputs, alias and data.
what would go in the data field?
Baring in mind I already have an A record for the redirect.
A record is;
shop 123.456.789 (server ip address)
I thought id want to use;
shop for alias and shop.mydomain.com for data, but its not allowing that?
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
I'll be honest, I'm not well up on what's typed here and there, I just use the cpanel on my server which takes the leg work out of it, but a CNAME is essentially what you're after.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
I assume the current redirect is just a htaccess/apache redirect?
CNAME isn't going to work as resource id's aren't supported (ie: /shopaddress). So you're best bet is to either use rewrite rules via htaccess (, if you have access to your webserver configs then you can redirect there as well) or move the shop to the directory associated with the subdomain.
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
i dont have access im afraid dom.
I created the A record myself, but the host told me it wasnt possible for me to create the re-direct, they had to do it, I assume they have done it via htaccess then.
|
Brett
Premium Member
Registered: 16th Dec 02
Location: Manchester
User status: Offline
|
Ah yeah, Dom's correct
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
If you're running something like DirectAdmin or cPanel then you could re-create the subdomain to point to the myshopaddress directory (i'm assuming this is on the same domain), this should work anyway.
Otherwise re-create the subdomain to point to another directory and then place a .htaccess file with rewrite rules.
You'll probably have to reconfig the commerce site to use the new address/subdomain.
|