Question: I want to create a link which is catched by **$\_GET** in PHP. Let me explain:

Currently i do this in **HTML**:

```
<a href="?contactus">Contact Us</a>

```

And this is what i do in **php**:

```
<?php
    if (isset($_GET['contactus'])){
        include "contactus.php";
    }
?>

```

In this case the address becomes like this `www.domain.com/?contactus`.

But I want the address like this: `www.domain.com/contactus`

If i change html to `<a href="contactus">Contact Us</a>`
but it doesn't work. Anyone please tell me. Thanks

Answer: 
you need a .htaccess file to make it work

like this:

```
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^contactus\/?/?$ index.php?contactus
</IfModule>

```

and index.php like this

```
<?php
    if (isset($_GET['contactus'])){
        include "contactus.php";
    }
?>

```
hi you need to do like this
at page where u set anchor tag do following 
$url="contact.php?page"='contactus'; 
give href="$url" .

And other side you can use `$urlget = $_GET['page'];`

plz note the attribute u used is page so when u try to get in nother page u need to use `$_GET['page']` and you can see url when you click on contact us page in your address bar there is also contact.php?page='contactus' showing