apache - Mod Rewriting - really stuck -
the site i'm talking subdirectory of main site. site/index redirects index.php. site/gallery redirects gallery.php. now, i'd site/gallery/question/answer link site/gallery.php?question=answer. question can have 2 possible values, answer can have several hundred. 
because it's site/gallery (without end slash), site/gallery/question/answer doesn't load properly. , when rewrite work (with end slash), have re-do of images , links in html , css parts work that, because else it'd redirect main site (because of additional slash). there solution?
how about:
rewriteengine on  rewritecond %{request_filename} !-s rewritecond %{request_filename} !-l rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^gallery/(q1|q2)/([-a-za-z0-9=_]+)$ index.php?$1=$2 [l,nc,ne,qsa]  rewriterule ^gallery$ gallery.php [l,nc,ne,qsa] attached index.php
<?php print_r($_get);  die(); 
Comments
Post a Comment