Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Subdomeny + htaccess
Forum PHP.pl > Forum > Serwery WWW > Apache
musiek86
Na windows serwer miałem plik htaccess w takiej postaci:
  1. ErrorDocument 404 /err/404.shtml
  2. ErrorDocument 403 /err/403.shtml
  3. ErrorDocument 500 /err/500.shtml
  4.  
  5.  
  6. RewriteEngine On
  7. Options +FollowSymlinks
  8. RewriteBase /
  9. RewriteCond %{HTTP_HOST} outsider.kmus.pl
  10. RewriteCond %{REQUEST_URI} !outsider/
  11. RewriteRule ^(.*)$ outsider/$1 [L]
  12.  
  13. RewriteEngine On
  14. Options +FollowSymlinks
  15. RewriteBase /
  16. RewriteCond %{HTTP_HOST} proxy.kmus.pl
  17. RewriteCond %{REQUEST_URI} !proxy/
  18. RewriteRule ^(.*)$ proxy/$1 [L]
  19.  
  20. RewriteEngine On
  21. Options +FollowSymlinks
  22. RewriteBase /
  23. RewriteCond %{HTTP_HOST} pictube.kmus.pl
  24. RewriteCond %{REQUEST_URI} !pictube/
  25. RewriteRule ^(.*)$ pictube/$1 [L]


Jak to teraz ogarnąć by mi na linuxie działało?

Ten problem tez rozwiązałem.
erix
A nie działa? Masz wildcard w DNS aktywny?
musiek86
Juz działa, po prostu sie nie skopiował do katalogu
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.