Philipsky 0 Report post Posted March 15, 2017 witam, na własnym serwerze utworzyłem subdomenę. Chcę ją przekierować na inny adres url. Jak to zrobić ? Share this post Link to post Share on other sites
BartX 165 Report post Posted March 15, 2017 poczytaj sobie Share this post Link to post Share on other sites
kreatiff 11 Report post Posted March 15, 2017 (edited) Można też np. w pliku index zrobić przekierowanie. W php służy do tego nagłówek (header). W komentarzach gotowe przykłady zależnie od typu przekierowania. Można też w nagłówku dokumentu html za pomocą meta refresh, ale to nie jest już zalecane. No i jeszcze w javascript też można. A i pewnie w samym panelu hostingu można przekierować, no i korzystając z wpisów DNS też jeśli przekierowanie na samą domenę wystarczy. Edited March 15, 2017 by kreatiff Share this post Link to post Share on other sites
michaelt 3 Report post Posted March 19, 2017 W katalogu subdomeny tworzysz plik index.php a w nim : <?php // przekierowanie na inną stronę header('Location: http://AdresStronyNaKtórąChceszPrzekierowaćSubdomenę.pl'); ?> Share this post Link to post Share on other sites
Atari130XE 5 Report post Posted April 18, 2017 (edited) . Edited April 18, 2017 by Atari130XE Share this post Link to post Share on other sites