dAivEd Posted May 3, 2011 Report Share Posted May 3, 2011 Sveiki! Nesen pamaniju ļoti lielu kļudu taisot jaunu mājaslapu .htaccess pierakstiju Options +FollowSymlinks Options All -Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ([^/]+)/?$ /?page=$1 [L,QSA] Lai linki izskātās smukāki teiksim nevis www.site.com?page=contacts bet www.site.com/contacts Kontents mājaslapa ielādejās caur jQuery sekojoši (ielādēju caur jQuery jo vajag lai katru laiku atjaunojas jaunumi galvenāja lapa): <div id="content"><img src="/spinner.gif" alt="" style="display: block; margin: 0 auto;" /></div> <script type="text/javascript"> function refresh_stats() { $.get( "pages/news.php", function(returned_data) { $('#content').html(returned_data); window.setTimeout(refresh_stats, 15000); } ); } $(document).ready(function(){ refresh_stats(); }); </script> rakstot www.site.com/contacts/newform (ieliekot uzstādijumus iekš .htaccess) vai rakstot www.site.com/contacts/ Man tas jQuery takā ieciklējas viņš tajā <div id=content> atver velreiz manu pilnu lapu, un taja lapa pa vidu velreiz lapu utt. Varbūt spečuki zin kas pa lietam un kas man nepareizi ? :/ Quote Link to comment Share on other sites More sharing options...
briedis Posted May 3, 2011 Report Share Posted May 3, 2011 (edited) šis ir relatīvs ceļš : "pages/news.php" Edited May 3, 2011 by briedis Quote Link to comment Share on other sites More sharing options...
dAivEd Posted May 3, 2011 Author Report Share Posted May 3, 2011 šis ir relatīvs ceļš : "pages/news.php" Liels paldies :) Tiku gala, tagad viss ok, nezināju ka janorāda pilnu ceļu. 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.