CodeIgniter Forums

Full Version: htaccess problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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