dee19802000 Posted March 3, 2011 Share Posted March 3, 2011 hey i have a jump menu that when i select an option it filters a table. My problem is that i have a .htaccess file in place to rewrite the urls but when i select my option i get a 404 error. I know this is something to do with my htaccess file not knowing what is going on so i am here asking for some help. I have posted some code snipets below: My option code with a link to the url i want <option style="text-align:center;" value="<?php echo $row_config['website_url']; ?>content/<?php echo $_GET['id']; ?>/<?php echo $linkname ?>/filter/<?php echo $row_categories['cat_id']?>"><?php echo $row_categories['cat_name']?></option> my htaccess file Options +FollowSymLinks RewriteEngine on RewriteRule ^content/([^/\.]+)/([^/\.]+)/?$ index.php?id=$1 RewriteRule ^content/filter/([^/\.]+)/([^/\.]+)/?$ index.php?cat_id=$1 RewriteRule ^articles/([^/\.]+)/([^/\.]+)/?$ articles.php?articles_id=$1 RewriteRule ^home/ index.php [L] Dee Quote Link to comment https://forums.phpfreaks.com/topic/229525-rewrite-urls-problem/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.