<?php if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (isset($_GET['type'])) {
switch ($_GET['type']) {
case 'big':
header('Location: HOME');
// Query can be executed here...
exit;
break;
?>
<div class="container-fluid">
<div class="row">
<a href="?type=big">
<div class="col-md-6 big">
<h1>Big</h1>
Those are my two sets of code. The PHP and the HTML. However whenever i click on the picture. The URL becomes http://WEBSITE/rooms?type=big , however it doesnt do the redirect part where it's meant to go to the ''home'' page.
My web.config for this is currently
<rule name="Imported Rule 6" stopProcessing="true">
<match url="^rooms([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url=rooms&type={R:1}" appendQueryString="false" />
</rule>