I have a url <http://www.example.com/chatroom/chats.php?chat=hey> dear

I want a url to be <http://www/example.com/chatroom/chats/hey> dear

where chatroom is an alias folder.

my apache document root is pointing to a specific folder as DocumentRoot

`/var/www/html/myweb`

I am trying like

```
RewriteEngine on
RewriteBase /
RewriteRule ^chatroom/([A-Za-z0-9-]+)/?$ chats.php?chat=$1 [NC]

```

Its saying

> 
> 404 not found.
> 
> 
>