Witam.

Problem jest taki, że jak wpisze w przeglądarce http://public.webstarter.pl to i tak przekieruje na http://*.webstarter.pl
A jak usunę przekierowanie na http://*.webstarter.pl to wtedy działa przekierowanie na public.
Mój htaccess wygląda następująco:

  1. RewriteEngine On
  2.  
  3. # public.webstarter.pl
  4.  
  5. RewriteCond %{HTTP_HOST} ^(www.)?public.webstarter.pl
  6. RewriteCond %{REQUEST_URI} !public/
  7. RewriteRule ^(.*)$ public/$1 [NC,L,QSA]
  8.  
  9. # RewriteRule ^(.*)$ public/$1 [L]
  10.  
  11. # *.webstarter.pl
  12.  
  13. RewriteCond %{HTTP_HOST} ^(www\.)?(.+).webstarter\.pl$ [NC]
  14. RewriteRule ^(.*)$ /domain/webstarter.pl/$1 [L]