hello i’m using this .htaccess code to redirect urls.
RewriteEngine on
RewriteRule ^printer/([^/\.]+)/?$ printer.php?id=$1 [L]
so any product.php?id=123 will become /product/123.
i changed all the links but i have a problem with html select form no matter what i do i cant get rid of the ‘?=’ signs? how can i get rid of them..?
here is the html code:
<form action="/printer/" method="get" accept-charset="utf-8">
<select name="" id="printers">
<?php foreach($printers as $printer): ?>
<option class="printer_model" id="#<?php echo $printer['printer_model'] ?>"
value="<?php echo $printer['printer_id']; ?>">
<?php echo $printer['printer_model']?>
</option>
<?php endforeach;?>
</select>
so i want the action to be /printer/123 but i get /printer/?=123
HTML :
printers.php :
Use from this trick