Welcome Guest, Not a member yet? Register   Sign In
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??




Theme © iAndrew 2016 - Forum software by © MyBB