ArnisR Posted November 18, 2010 Report Share Posted November 18, 2010 (edited) Tātad izveidota mājas lapa ar visiem "skaistajiem" URL, izmantojot Mod rewrite. Ja ieliek visus lapas failus testēšanai submapē , piemeram - lapa.lv/mape/ - tad tie URL vairs nestrādā. Vai var kaut kā panākt, lai tas viss darbotos uz lapa.lv/mape/ ??? Ak jā... htacces failā ir šis: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -d [OR] RewriteCond %{REQUEST_FILENAME} -f RewriteRule .* - [L] RewriteRule ^galerija/$ /gallery.php [L] Edited November 18, 2010 by ArnisR Quote Link to comment Share on other sites More sharing options...
briedis Posted November 18, 2010 Report Share Posted November 18, 2010 Pielabo rewrite rules, lai atbilst tam ceļam.. Quote Link to comment Share on other sites More sharing options...
ArnisR Posted November 18, 2010 Author Report Share Posted November 18, 2010 Bet kā tieši pielabot? neesmu mod rewrite specs! Quote Link to comment Share on other sites More sharing options...
briedis Posted November 18, 2010 Report Share Posted November 18, 2010 RewriteRule ^mape/galerija/$ /gallery.php [L] Quote Link to comment Share on other sites More sharing options...
ArnisR Posted November 18, 2010 Author Report Share Posted November 18, 2010 Tad sanāk, ka arī visiem iekļautajiem .js un .css failiem būs jāliek klāt tā mape... Quote Link to comment Share on other sites More sharing options...
sheps Posted November 19, 2010 Report Share Posted November 19, 2010 var jau vnk noņemt "^" rulaa.. strādās pēc būtības visās mapēs.. Quote Link to comment Share on other sites More sharing options...
mypoint Posted November 19, 2010 Report Share Posted November 19, 2010 Man pie šīs pašas tēmas jautājums. Uz localhost strādā mod_rewrite jeb man vienīgajam tā nestrādā? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 19, 2010 Report Share Posted November 19, 2010 Strādā. 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.