nemakuphp Posted February 21, 2014 Report Share Posted February 21, 2014 Ir šādi rewrite rules - http://pastebin.com/SQsJLtvY URL ir http://domain.tld/path/to/file.js Problēma ir tāda, ka "path/to/file.js" aiziet infinite loopā (izskatās, ka to veido pats pēdējais rule) veidojot linkus http://domain.tld/index.phppath/to/file.jsindex.phppath/to/file.js... Kā šo varētu atrisināt? Quote Link to comment Share on other sites More sharing options...
gurkjis Posted February 22, 2014 Report Share Posted February 22, 2014 Tā ir Tevis paša custom sistēma, kurai to vajag ? Saprotu, pārtaisīt varbūt būtu apjomīgs darbs, bet es nekad, nekad nečakarējos ar htaccess rulēm, vnk paņemu vienu nemainīgu htaccess failu, kurš nodod kontroli uz PHP skriptu, un PHP skripts pats analizē padoto adresi un dara ko vien vajag... Var lietot Wordpress variantu http://codex.wordpress.org/htaccess Man šāds ir http://pastebin.com/wHvaHUN4 PHP iegūst URL ceļu: <?php $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); var_dump($path); Quote Link to comment Share on other sites More sharing options...
nemakuphp Posted February 22, 2014 Author Report Share Posted February 22, 2014 Nav mana sistēma, līdz ar to lapas uzbūvi nevar mainīt. 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.