kalabox Posted January 12, 2011 Report Share Posted January 12, 2011 Sveiki gribeeju pajautaat, vai ir iespeejams dabuut gatavu, man piem lapa atrodas uz ta pasha servera tik citaa direktorijaa, nav root direktorijaa, un liidz ar to piem. http://www.tratra.lv nestraa straadaa tikai taa tratra.lv/se gribeeju uzzinaat vai var izdariit taa: root direktorijaa ielikt index.php un tamajaa index.php incluudot no /se/ mapes to index.php failu un tad lai straada lapa ar tratra.lv domenu, nevis ar tests.tratra.lv subdomenu..? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted January 12, 2011 Report Share Posted January 12, 2011 Kāpēc, vienkārši, nevar root'a index.php ielikt redirect'u, kas "pārmet uz" vajadzīgo mapi? Vai ar .htaccess nomainīt root'a direktoriju? =) Neesmu mēģinājis, bet domāju, ka ar include() / require() nesanāks. Quote Link to comment Share on other sites More sharing options...
kalabox Posted January 12, 2011 Author Report Share Posted January 12, 2011 (edited) kaut kaa taa?? RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?tratra.lv$ RewriteCond %{REQUEST_URI} !^/se/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /se/$1 RewriteCond %{HTTP_HOST} ^(www.)?tratra.lv$ RewriteRule ^(/)?$ se/index.php [L] ??? Sanaaca baigi labi Edited January 12, 2011 by kalabox Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 13, 2011 Report Share Posted January 13, 2011 gribeeju uzzinaat vai var izdariit taa: root direktorijaa ielikt index.php un tamajaa index.php incluudot no /se/ mapes to index.php failu un tad lai straada lapa ar tratra.lv domenu, nevis ar tests.tratra.lv subdomenu..? Kam taada izvirtiiba? index.php redirekteet (parmest) uz citu index.php? nevar uzreiz vinju tur kopeet? -- a ja vajag lai nebuutu www.xx.lv/yy/ bet uzreiz ta direktorija yy stradatu piemeram ka www.xx.lv tad to var elementari piekonfiguret ieksh psha web servera .. prieksh APACHE shadi: ieksh httpd.conf NameVirtualHost *:80 <VirtualHost *:80> ServerName www.xxx.lv DocumentRoot "C:/Apache/htdocs/xxx/yy" </VirtualHost> papildus tur var noradiit vel daudzus parametrus Quote Link to comment Share on other sites More sharing options...
kalabox Posted January 13, 2011 Author Report Share Posted January 13, 2011 Paldies wolf :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.