Rich Bitch Posted April 6, 2011 Report Share Posted April 6, 2011 (edited) Man ir pieņemsim mājas lapai administrācija folderī "administration", vai ir iespējams sataisīt, tā ka rakstot, piemēram, un tikai "adminka" tiek administrācijā? Reāli gribētos, lai fiziski administrācija atrodas folderī http://domens.lv/administration,'>http://domens.lv/administration, bet lietotājs raksta un lieto kā http://domens.lv/adminka, bet ievadod http://domens.lv/administration aiziet uz http://domens.lv. Šo laikam varētu dabūt ar mod_rewrite, bet nemācēšu to izveidot. Edited April 6, 2011 by Rich Bitch Quote Link to comment Share on other sites More sharing options...
gta1151 Posted April 6, 2011 Report Share Posted April 6, 2011 (edited) .htaccess faila jāskatās šādi,vajag par baudīt admins vai users jābūt ifam RewriteEngine On RewriteRule ^adminka$ admin.php [L] re kur html tags ka aizsūta user uz tavu lapu <meta http-equiv="refresh" content="0; url=http://http://domens.lv" /> Edited April 6, 2011 by gta1151 Quote Link to comment Share on other sites More sharing options...
Val Posted April 6, 2011 Report Share Posted April 6, 2011 http://forum.modrewrite.com/viewtopic.php?t=1601 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.