www.pctuning.cz a pctuning.cz
- the.turion
- Nováček

-
- Registrován: 08. kvě 2005
www.pctuning.cz a pctuning.cz
mate jednu chybku.
http://pctuning.cz/ hlasi 'Bad Request (Invalid Hostname)'
http://www.pctuning.cz/ ide web.
mali by ste s tym nieco spravit
//edit Wilik - presun ze zprav pro adminy
http://pctuning.cz/ hlasi 'Bad Request (Invalid Hostname)'
http://www.pctuning.cz/ ide web.
mali by ste s tym nieco spravit
//edit Wilik - presun ze zprav pro adminy
- sheriff.wiggum
- Začátečník

- Registrován: 08. dub 2005
- Bydliště: Skotsko/Ceska republika
- Kontaktovat uživatele:
- johny128
- Začátečník

- Registrován: 10. úno 2004
nj, je to o nastaveni dns zaznamu, chyba to rozhodne nebude
..uz sa tu na to inac niekto pytal ale nenasiel som to
sheriff.wiggum: nekecas
Ak moc chces tak si pridaj do hosts

sheriff.wiggum: nekecas
Ak moc chces tak si pridaj do hosts
Kód: Vybrat vše
212.80.76.194 pctuning.cz
- the.turion
- Nováček

-
- Registrován: 08. kvě 2005
a co takto na pctuning.cz hodit index.php ktory posle hlavicku kde je nieco ako permanently moved to www.pctuning.cz. nieco take myslim exituje a este preistotu hodi META tag ktory to presmeruje
- cabman
- Středně pokročilý

- Registrován: 15. úno 2005
- Bydliště: Prčice
Je to v DNS (jak bylo psané výše), ale jinak by mě taky docela zajímalo proč není pctuning.cz směrovaný na www.pctuning.cz. Bylo by to takový víc logický a bez www by se to i líp psalo.
Johny128 možná myslel tento odkaz http://forum.pctuning.cz/viewtopic.php? ... t=dom%E9na kde se to opravdu nakouslo.
Johny128 možná myslel tento odkaz http://forum.pctuning.cz/viewtopic.php? ... t=dom%E9na kde se to opravdu nakouslo.
Jsem pro přesměrování pctuning na google. Na co forum? Když se člověk na něco zeptá tak mu nějakej "inteligent" odpoví že si to má najít v google. V google je všechno a konečná odpověď na vše je google.
- TheRoot
- Nováček

-
- Registrován: 15. čer 2004
- Bydliště: Prague
- Kontaktovat uživatele:
Skriptik
Asi nejlepsi cesta je:
<?php
Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://www.pctuning.cz/");
?>
Jinak troska teorie:
10.3.2 301 Moved Permanently
The requested resource has been assigned a new permanent URI and any
future references to this resource SHOULD use one of the returned
URIs. Clients with link editing capabilities ought to automatically
re-link references to the Request-URI to one or more of the new
references returned by the server, where possible. This response is
cacheable unless indicated otherwise.
The new permanent URI SHOULD be given by the Location field in the
response. Unless the request method was HEAD, the entity of the
response SHOULD contain a short hypertext note with a hyperlink to
the new URI(s).
If the 301 status code is received in response to a request other
than GET or HEAD, the user agent MUST NOT automatically redirect the
request unless it can be confirmed by the user, since this might
change the conditions under which the request was issued.
14.30 Location
The Location response-header field is used to redirect the recipient
to a location other than the Request-URI for completion of the
request or identification of a new resource. For 201 (Created)
responses, the Location is that of the new resource which was created
by the request. For 3xx responses, the location SHOULD indicate the
server's preferred URI for automatic redirection to the resource. The
field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
An example is:
Location: http://www.w3.org/pub/WWW/People.html
Zdroj: RFC 2616
pokud mam nekde chybu, tak se omlouvam :) Jen nadhazuji jiz hotove reseni, protoze bych take uvital, kdyby toto presmerovani bylo.
<?php
Header("HTTP/1.1 301 Moved Permanently");
Header("Location: http://www.pctuning.cz/");
?>
Jinak troska teorie:
10.3.2 301 Moved Permanently
The requested resource has been assigned a new permanent URI and any
future references to this resource SHOULD use one of the returned
URIs. Clients with link editing capabilities ought to automatically
re-link references to the Request-URI to one or more of the new
references returned by the server, where possible. This response is
cacheable unless indicated otherwise.
The new permanent URI SHOULD be given by the Location field in the
response. Unless the request method was HEAD, the entity of the
response SHOULD contain a short hypertext note with a hyperlink to
the new URI(s).
If the 301 status code is received in response to a request other
than GET or HEAD, the user agent MUST NOT automatically redirect the
request unless it can be confirmed by the user, since this might
change the conditions under which the request was issued.
14.30 Location
The Location response-header field is used to redirect the recipient
to a location other than the Request-URI for completion of the
request or identification of a new resource. For 201 (Created)
responses, the Location is that of the new resource which was created
by the request. For 3xx responses, the location SHOULD indicate the
server's preferred URI for automatic redirection to the resource. The
field value consists of a single absolute URI.
Location = "Location" ":" absoluteURI
An example is:
Location: http://www.w3.org/pub/WWW/People.html
Zdroj: RFC 2616
pokud mam nekde chybu, tak se omlouvam :) Jen nadhazuji jiz hotove reseni, protoze bych take uvital, kdyby toto presmerovani bylo.
- cabman
- Středně pokročilý

- Registrován: 15. úno 2005
- Bydliště: Prčice
Toto není řešení. Podle mě jde o nasměrování záznamů v DNS a né o přesměrování mezi dokumenty! Proto jsou tyto návrhy asi nepoužitelný.
To TheRoot: Je hezký že jsi někde okopíroval kus článku, ale né každý umí anglicky. Proto je lepší řešení napsat tvojí myšlenku krádce a česky, nebo sem hodit jen url.
To TheRoot: Je hezký že jsi někde okopíroval kus článku, ale né každý umí anglicky. Proto je lepší řešení napsat tvojí myšlenku krádce a česky, nebo sem hodit jen url.
Jsem pro přesměrování pctuning na google. Na co forum? Když se člověk na něco zeptá tak mu nějakej "inteligent" odpoví že si to má najít v google. V google je všechno a konečná odpověď na vše je google.
- TheRoot
- Nováček

-
- Registrován: 15. čer 2004
- Bydliště: Prague
- Kontaktovat uživatele:
DNS
Opravdu jde o nastaveni DNS, DNS pctuning.cz je nastaveno na jinou IP nez DNS www.pctuning.cz:
www.pctuning.cz 7200 A 212.80.76.194
pctuning.cz 7200 A 217.11.236.33
Ovsem nameserver je shodny pro celou domenu a to ns.pctuning.cz coz je stejny stroj jako pctuning.cz proto je mozne tyto DNS zaznamy relativne snadno zmenit (za predpokladu, ze je to server, ktery patri pctuningu, coz bych podle reverse zaznamu pctuning.casablanca.cz tipoval:)).
Zajimave je ovsem, ze oba servery jsou uplne jinde :)
4 1884 ms 2470 ms 2714 ms nix.tgnet.cz [194.50.100.75]
5 2427 ms 2526 ms 2588 ms seznam--bbsw1.tgnet.cz [212.80.64.18]
6 2376 ms 3237 ms 3078 ms pctuning.cz [212.80.76.194]
4 1129 ms 377 ms 346 ms nix1.to.cas.ip-anywhere.net [194.50.100.15]
5 564 ms 1330 ms 418 ms alternate.cas.ip-anywhere.net [217.11.224.238]
6 118 ms 122 ms 125 ms pctuning.casablanca.cz [217.11.236.33]
A take ze pri reverse lookup ma www.pctuning.cz adresu pctuning.cz :)
Jinak k tomu vytahu z RFC ti klidne hodim odkaz na senzam:
http://www.cse.ohio-state.edu/cs/Services/rfc/rfc.html
pripadne primo:
http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc2616.html
moje myslenka je bezne HTTP presmerovani, podle specifikaci by to mel prelouskat kazdy prohlizec (neznam zadny ve kterem by to nefungovalo) a ani to nelze zakazat (jako treba zmineny meta refresh).
www.pctuning.cz 7200 A 212.80.76.194
pctuning.cz 7200 A 217.11.236.33
Ovsem nameserver je shodny pro celou domenu a to ns.pctuning.cz coz je stejny stroj jako pctuning.cz proto je mozne tyto DNS zaznamy relativne snadno zmenit (za predpokladu, ze je to server, ktery patri pctuningu, coz bych podle reverse zaznamu pctuning.casablanca.cz tipoval:)).
Zajimave je ovsem, ze oba servery jsou uplne jinde :)
4 1884 ms 2470 ms 2714 ms nix.tgnet.cz [194.50.100.75]
5 2427 ms 2526 ms 2588 ms seznam--bbsw1.tgnet.cz [212.80.64.18]
6 2376 ms 3237 ms 3078 ms pctuning.cz [212.80.76.194]
4 1129 ms 377 ms 346 ms nix1.to.cas.ip-anywhere.net [194.50.100.15]
5 564 ms 1330 ms 418 ms alternate.cas.ip-anywhere.net [217.11.224.238]
6 118 ms 122 ms 125 ms pctuning.casablanca.cz [217.11.236.33]
A take ze pri reverse lookup ma www.pctuning.cz adresu pctuning.cz :)
Jinak k tomu vytahu z RFC ti klidne hodim odkaz na senzam:
http://www.cse.ohio-state.edu/cs/Services/rfc/rfc.html
pripadne primo:
http://www.cse.ohio-state.edu/cgi-bin/rfc/rfc2616.html
moje myslenka je bezne HTTP presmerovani, podle specifikaci by to mel prelouskat kazdy prohlizec (neznam zadny ve kterem by to nefungovalo) a ani to nelze zakazat (jako treba zmineny meta refresh).
- JanoF
- Začátečník

-
- Registrován: 29. led 2004
- Bydliště: Bratislava
- Kontaktovat uživatele:
Toto sa da spravit aj pomocou .htaccess
Kód: Vybrat vše
RewriteEngine on
RewriteCond %{HTTP_HOST} ^pctuning.cz
RewriteRule ^(.*) http://www.pctuning.cz/$1 [L,R=301,QSA]- TheRoot
- Nováček

-
- Registrován: 15. čer 2004
- Bydliště: Prague
- Kontaktovat uživatele:
Pokud vim tak na toto musis mit aktivni mod_rewrite, nebo jak se to jmenuje...
JanoF píše:Toto sa da spravit aj pomocou .htaccess
Kód: Vybrat vše
RewriteEngine on RewriteCond %{HTTP_HOST} ^pctuning.cz RewriteRule ^(.*) http://www.pctuning.cz/$1 [L,R=301,QSA]
- promecon
- Začátečník

- Registrován: 17. čer 2004
- Bydliště: Blava
- Kontaktovat uživatele:
