CodeIgniter Forums
htaccess problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: htaccess problem (/thread-56610.html)



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??