• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htaccess problem

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.