CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 1819|Reply: 7

Domain Name Server

[Copy link]
Post time 3-4-2007 10:12 PM | Show all posts |Read mode
Salam semua ...

Macamana kita nak set Domain Name Server
supaya dia pergi ke fail yang kita nak?

contohnya:
url www.my-cari.com
dia akan pergi ke
url www.cari.com.my/index2.htm

terima kasih

p/s:
err...
korang faham ke apa yang aku tanya nih?
Reply

Use magic Report


ADVERTISEMENT


Post time 3-4-2007 11:49 PM | Show all posts

Reply #1 HangJebat's post


you cannot do that to dns (domain name server) server. you need to fix it on your webhosting server. kalau gunakan iis (microsoft internet information service), just naikkan file index2.htm to the very top of the list. kalau gunakan third party webhosting service, then just rename file index2.htm to the one that your webhosting server understand.
Reply

Use magic Report

Post time 4-4-2007 12:02 AM | Show all posts
kalau dapat guna PHP, buat je coding redirect.

Kalau ada redirect function kat hosting, pun boleh terus redirect.

Aku rasa possible jugak guna DNS ni, sebab aku ada beli domain dan point pada subdomain/subfolder aku, boleh je. Tapi makan masa sampai 72 jam la. Aku rasa untuk kes kau ni, better kau guna redirect coding atau function yang dah sedia ada dalam hosting je

PHP:
http://www.google.com/search?q=p ... =utf-8&oe=utf-8

Kalau tak pun guna Javascript
http://www.google.com/search?q=j ... =utf-8&oe=utf-8
Reply

Use magic Report

Post time 4-4-2007 12:08 AM | Show all posts
ya betul. nak simple, open your notepad, then cut and paste coding php dibawah:

<?php
header("Location: http://www.cari.com/index2"); /* Redirect browser */

/* Make sure that code below does not get executed when we redirect. */
exit;
?>

edit location spt yg anda mahukan, dan savekan sebagai index.php.
Reply

Use magic Report

Post time 4-4-2007 12:27 AM | Show all posts

Reply #3 artgeex's post


artgeex, you cannot do it on dns server. if you use coding, yes, you can do it. but dns itself, no. dns points to an ip address. your web service decides what page needs to be the main page. if you look inside dns server, it only has zone files for FQDNs and IP addresses only - nothing else. the same goes for subdomains.
Reply

Use magic Report

Post time 4-4-2007 12:52 AM | Show all posts

Reply #5 oobi's post

My bad. Sebenarnya aku nak cerita pasal host records tapi tadi aku malas nak check tu DNS ke apa   sorry, DNS memang tak boleh tukar/kacau, kalau dikacau alamat tunggang terbalik
Reply

Use magic Report

Follow Us
 Author| Post time 4-4-2007 10:51 PM | Show all posts
salam...

thanks for your reply

oobi
thanks for your explanation, and comprehension also...

actually,
we only have one webhosting
and with new domain name
we want it redirect to another index file

since it's not possible
nevermind ...

so guys
is there any possibility to redirect the page to specific index file?

thank you very much
Reply

Use magic Report

Post time 4-4-2007 11:22 PM | Show all posts

Reply #7 HangJebat's post


try methods in post #3 (by artgeex) or/and post #4 (by iweed). that should redirect the page from your main index file to whatever you want.
Reply

Use magic Report


ADVERTISEMENT


You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT



 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

31-12-2024 05:39 AM GMT+8 , Processed in 0.039040 second(s), 20 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list