klavsr Posted June 16, 2010 Report Share Posted June 16, 2010 Atvērts "domens.lv/lv/kategorija/raksti/25", ko .htaccess pārraksta uz serverim saprotamo "domens.lv/?lng=lv&cat=kategorija&raksta_id=25". Jautājums: Kā dabūt un parādīt lapā īsto adresi "domens.lv/?lng=lv&cat=kategorija&raksta_id=25"? Piem. REQUEST_URI rāda browserī redzamo, smuko adresi nevis patieso. Kā visvienkāršāk parādīt īsto? Quote Link to comment Share on other sites More sharing options...
briedis Posted June 16, 2010 Report Share Posted June 16, 2010 Kas tas ir, ĪSTĀ adrese? Adrese ir tāda, kādu tu uzraksti to adreses laukā, cits stāsts ir tas, kā serveris to interpretē. Lai apskatītu, kādi GET mainīgie padoti, izmanto print_r($_GET); Quote Link to comment Share on other sites More sharing options...
rpr Posted June 16, 2010 Report Share Posted June 16, 2010 echo $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"]; Quote Link to comment Share on other sites More sharing options...
klavsr Posted June 16, 2010 Author Report Share Posted June 16, 2010 Paldies! 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.