php - Hide one of parameters in url -


i have url looked this:

example.com/page.php?id=1&type=yes 

and have used following rules in .htaccess hide parameters

#rewriterule .* https://www.%{server_name}%{request_uri} [r,l] rewriterule ^([^/\.]+)/([^/\.]+) /page.php?id=$1 

and got this:

example.com/page.php/1/yes 

how can have url looks like:

**example.com/page.php/yes** 

my php codes are:

echo '<li class="link actived"><a href="http://' . $_server['http_host'] . '/' . $row['id'] . '/' . $secure->toascii($row['type']) . '">' . $row['type'] . '</a></li>'; 

best!!


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -