Blitz Posted November 16, 2010 Report Share Posted November 16, 2010 Sveiki, ir 2 hosti, galvenais aa.lv un testēšanai test.aa.lv kas atrodas uz viena servera. aa.lv .htaccess satur: RewriteEngine On RewriteRule ^([a-z-]*)$ ?page=group_parent&link=$1 [L] rezultatā ievadot aa.lv/abc $_GET['page']==group_parent un $_GET['link']==abc uz test.aa.lv .htaccess satur to pašu RewriteEngine On RewriteRule ^([a-z-]*)$ ?page=group_parent&link=$1 [L] bet ievadot urli test.aa.lv/abc $_GET['page']==group_parent un $_GET['link'] ir tukšs. ja pamainu kodu uz RewriteEngine On RewriteRule ^([a-z-]*)$ ?page=group_parent&link=abc [L] tad $_GET['page']==group_parent un $_GET['link']==abc, tātad nestrāda reference. Kāpēc? Aizrakstiju uz hosta supportu, šieie ar rausta plecus, tāka drošvien kāda ninase sakarā ar subdomeinu. Jau iepriekš- paldies. Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted November 16, 2010 Report Share Posted November 16, 2010 (edited) jau vairaaak kart esmu publicejis bet rekur velreiz htaccess Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?link=$1 [L,QSA][size=2] ar sho htaccess tu iegusti .lv/(.*) kaa .lv/?link=(.*) Edited November 16, 2010 by EdgarsA Quote Link to comment Share on other sites More sharing options...
Blitz Posted December 12, 2010 Author Report Share Posted December 12, 2010 Vai nu es nesapratu tevi, vai tu mani, bet problemas risinajums bij vienkārš: RewriteRule ^([a-z-]*)$ [b]index.php[/b]?page=group_parent&link=abc bet kāpēc vienā gadījumā strāda bez, bet otrā nē, nevar pateikt. 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.