Redirekcija domene

Recimo da imam domenu
http://www.hoteli.com

Želim napraviti redirekciju te domene na drugu koja ujedno sadrži moj affiliate id, s tim da prikazuje
http://www.hoteli.com
, a ne domenu od tog drugog sajta.

kaže ovako:

DNS Settings for Custom URLs
Whether you use a domain or a subdomain for your custom URLs, you still need to setup your DNS correctly. DNS settings are configured with your domain registrar or your web hosting company, and can usually be done online fairly quickly. Note that each registrar and web host has different setup methods, so we cannot provide direct support for this. If you have difficulties with your registrar or web host, try emailing their support department with a link to this page.

Be mindful that sometimes changes to your DNS settings can take up to 72 hours to filter through to all the DNS servers in the world. So even though your domain changes work in your own browser, there might be people on the other side of the world who still can’t see your site. For this reason it is always advised that you don’t launch your site until at least 72 hours after you make your DNS changes.

The correct method of setting up your DNS is to create a CNAME Record which points your domain or subdomain to
http://nijebitno.com
. It is important to note that yourdomain.com and
http://www.yourdomain.com
are seen as two different domains by the major search engines. What we suggest is that you setup the CNAME Record to point the “www.” version of your domain or subdomain to our servers. Then you setup a 301 redirect on your web hosting platform from the non- “www.” version back to the “www.” version. This is common practice in the field of Search Engine Optimization (SEO), as it stops the search engines from triggering a “duplicate content” response between both versions of your URL, and it also ensures that your visitors can still access your site when they mistype it.

Example - Domain:

CNAME Record: points
http://www.yourdomain.com
to
http://www.nijebitno.com

301 redirect: points yourdomain.com to
http://www.yourdomain.com


Example - Subdomain:

CNAME Record: points
http://www.hotels.yourdomain.com
to
http://www.nijebitno.com

301 redirect: points hotels.yourdomain.com to
http://www.hotels.yourdomain.com

It is important to note that the domain or subdomain that uses the CNAME record is what you type into the “Private Branding (Sub)Domain” field of the Private Branding Editor page. If you use the domain or subdomain that uses the 301 redirect instead, your visitors will not see your branding, and your traffic will not be tracked. Please be careful with the “www.” at the start of the URL.

There are also other ways to redirect your subdomain traffic to your Private Branding content on our servers. Most aren’t recommended due to their complications, potentially negative SEO impact and poor user experience. This includes .htaccess rewrites, header redirects, frames/iframes and JavaScripting. Frames and iframes in particular cause problems with search engines, and shouldn’t be used at all with our content. If your only option is to use one of these methods, try contacting us prior, to give us the chance to offer other suggestions.

Kako da najbezbojnije ovo napravim?

ova
http://www.hoteli.com
domena nije moja, to sam bezveze stavila, al sad sam skužila da oni imaju isto redirekciju na booking.com affiliate tražilicu.

ja bi tako nešto, kako da to napravim?

npr. na domeni, “hoteli.com”, uploaduj index.php sa ovim sadržajem :

<?php readfile("http://www.tvojsajt.com/fajl.html"); ?>

To sam koristio prije da mi redirectuje pravu domenu na free domain blog, a da ne prikazuje u address bar-u da je free domain blog.

mislim da to nema veze s tim

To je redirekcija. Ti si pitala kako da redirektuješ npr hoteli.com, na neki drugi sajt a da ne prikazuje u address baru link od tog sajta na koji redirektuješ nego hoteli.com.

A ovo što sam ja stavio to i radi. Možeš ti URL masking odradit’ i drugačije. Al ovako ti je najlakše.

da, al kod mene mora biti Id affiliate, ako to zajebem ništa od provizije, a i to što si mi ti rekao mi ništa ne znači. Hvala na trudu, al nemam ja to pojma ni gdje ni šta. Nastojim napravit onako kako su oni napisali gore, a i to mi je prekomplicirano.

Evo, ja sam išla ovako:

u c panel, pa redirect

piše type permanent (301)

izabrala domenu
http://www.gamesforfamily.net

redirects to-
http://www.nijebitno.com

označila only redirect with www i označila wild card direct

i ispadne tako kako ispadne, a ja bih htjela da ostane moja domena

žišku?

Jašta ba, “kužim” ja tebe…

Hoćeš da se domena ;

gamesforfamily.net redirecta na onaj sajt o hotelima sa tvojim affiliate ID-em.

Znači,

Odeš u gamesforfamily.net - public_html :

Prvo trebaš uklonit’ taj redirect što si sad stavila… Otvoriš trenutni index.php sa Notepad-om, ili nekim drugim text editorom. ( Možeš i iz cPanela-a, preko File Manager-a. )

Izbriši sve,
I samo napiši sljedeće :

<?php readfile("http://www.hotelscombined.com/?tvojAffiliate="); ?>

Spasi,

I kad odeš na gamesforfamily.net , otvorit će ti HotelsCombined sa tvojim affiliate ID-em. Al će ti gore u address baru pisat’ gamesforfamily.net

Skontala?

joooooooooooooj ako to nije tako, i sad sve upropastim…

ajd probat ću sad

epa nije se ništa dogodilo

Kad odeš na sickwriters.com, šta piše u address baru? Da je redirectano na HotelsCombined, ili još piše SickWriters?

I taj gore PHP sa readfile funkcijom meni radi. A vala i iframe mi radi.

Pošto ti ne radi readfile,

ej jel ima veze što mi je sajt u wordpressu?

sad sam išla na editor od predloška koji imam u index.php i izmijenila to, sad mi pokazuje sadržaj od te tražiled i sve to, al katastrofa izgleda, sve se raspada?

[quote=“tulipanka”]ej jel ima veze što mi je sajt u wordpressu?

sad sam išla na editor od predloška koji imam u index.php i izmijenila to, sad mi pokazuje sadržaj od te tražiled i sve to, al katastrofa izgleda, sve se raspada?[/quote]

Ma ne ideš editor templejtčića, nego odeš u file manager pravi index.php file bona… A ne od templejta index.php :smiley:

a šta me j…š

radi i sa ovim

[quote=“tulipanka”]

sad sam i u c panelu i u templateu jer ako ne promijenim u predlošku onda ne radi već mi prikazuje taj predložak

a gdje da ubacim moj kod

[quote=“tulipanka”]sad sam i u c panelu i u templateu jer ako ne promijenim u predlošku onda ne radi već mi prikazuje taj predložak

a gdje da ubacim moj kod[/quote]

Pa valja gdje da ubaciš svoj “link” ?

ma to sam napisala kad i ti onaj svoj post, pa nisam vidjela…

upisala sam SVOJ kod, e sad ne znam jedino dal radi to šta

mislim meni sve radi kad otvorim, al šta ako ne prati taj moj kod zato što nisam radila onako kako su oni rekli…

ček, moram sad to provjerit

ajd klikni na jedan google oglas sa strane da vidim jel radi

link

[quote=“tulipanka”]ajd klikni na jedan google oglas sa strane da vidim jel radi

link[/quote]

Kol’ko sam primjetio Google ads nemaju na početnoj, al’ imaju kad searchaš neku lokaciju. Kliknuo sam.


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja