Portál AbcLinuxu, 6. listopadu 2025 23:58
RewriteCond %{HTTP_HOST} ^www.([^.]+.[^.]+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
RewriteRule ^(tfile_.*) websites/%{HTTP_HOST}/template/$1 [L]
RewriteCond %{HTTP_HOST} ^([^.]+.[^.]+)\.localhost$ [NC]
RewriteRule ^template/(.*) websites/%1/template/$1 [L]
RewriteCond %{HTTP_HOST} ^([^.]+\.)?([^.]+.[^.]+)$ [NC]
RewriteRule ^template/(.*) websites/%2/template/$1 [L]
RewriteRule ^(favicon\.ico)$ websites2/%{HTTP_HOST}/template/$1 [L]
RewriteRule ^(robots\.txt)$ websites2/%{HTTP_HOST}/template/$1 [L]
RewriteRule ^(sitemap\.xml)$ websites2/%{HTTP_HOST}/template/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^websites/([^/]+)/template/(.*)$ websites2/$1/template/$2
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.