corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » dns gurus


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author dns gurus
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
8th Nov 12 at 10:34   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
8th Nov 12 at 11:04   View Garage View User's Profile U2U Member Reply With Quote

CNAME
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
8th Nov 12 at 11:18   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
8th Nov 12 at 11:29   View Garage View User's Profile U2U Member Reply With Quote

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
8th Nov 12 at 12:34   View User's Profile U2U Member Reply With Quote

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
8th Nov 12 at 12:39   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
8th Nov 12 at 12:42   View Garage View User's Profile U2U Member Reply With Quote

Ah yeah, Dom's correct
Dom
Member

Registered: 13th Sep 03
User status: Offline
8th Nov 12 at 13:12   View User's Profile U2U Member Reply With Quote

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.


 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Server 2003 help needed Melville Geek Day 15 1439
19th Feb 04 at 16:53
by Fester
 
Any Network/IT Admins out there? Houckham Geek Day 10 1257
19th Apr 04 at 12:57
by Trotty
 
SBS 2003 DNS problems! pow Geek Day 6 737
6th Feb 09 at 13:52
by pow
 
Software Day: I need help writing a tiny program pow Geek Day 28 1571
7th Oct 09 at 21:23
by jamied
 
DNS Config ed Geek Day 2 325
9th Jun 10 at 18:13
by ed
 

Corsa Sport » Message Board » Off Day » Geek Day » dns gurus 29 database queries in 0.0136602 seconds