The URL of my website is http://www.xxxxxx.co.nz/industry/?marine but i want to make it as http://www.xxxxxx.co.nz/industry/marine but marine is a key-value passed after "?". please give me the solution is it possible to make the URL in such a way that i can pass the key values to the URL without "?" sign.
You can do this via .htaccess see below code
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([\w\d~%.:_\-]+)$ index.php?params=$1 [NC]
after this using prams in php
<?php
$params = explode( "/", $_GET['params'] );
for($i = 0; $i < count($params); $i+=2) {
echo $params[$i] ." has value: ". $params[$i+1] ."<br />";
}
?>
so your url should be like this
http://yourURL.com/key/value