htaccess problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: htaccess problem (/showthread.php?tid=56610) |
htaccess problem - El Forum - 01-06-2013 [eluser]Unknown[/eluser] hello all, i'm a new htaccess now i have problem as below my menu is: Home | News | Tips | Reviews | my php : while($row = $statement->fetch(PDO::FETCH_ASSOC)){ echo '<li><a href="menu.php?sc_menu_id='.$row['sc_menu_id'].'">'.$row['sc_menu_name'].'</a></li>'; } my htaccess: Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_URI} news/ RewriteCond %{REQUEST_URI} tips/ RewriteCond %{REQUEST_URI} reviews/ RewriteRule news/ menu.php?sc_menu_id=1 [L] RewriteRule tips/ menu.php?sc_menu_id=2 [L] RewriteRule reviews/ menu.php?sc_menu_id=3 [L] if i key on url box : http://localhost/news/ it work but in my menu link it not working, why it not working?? |