The result I need is:

```
http://mywebsite.co/company.php?title=company-name

```

should look like 

```
http://mywebsite.co/company-name

```

And in the same way:

```
mywebsite.co/project.php?compname=compan-name&prjt=project-name

```

should look like

```
mywebsite.co/company-name/project-name

```

This is my code:

```
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /company.php
RewriteCond %{QUERY_STRING} ^title=([A-Za-z0-9-]*)$
RewriteRule ^company\.php$ http://mywebsite.co/%1? [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /project.php
RewriteCond %{QUERY_STRING} ^compname=([A-Za-z0-9-/]*)&prjt=([A-Za-z0-9-/]*)$ 
RewriteRule ^project\.php$ http://mywebsite.co/%1/%2? [L]

```

These two rules are working IF used individually. But if used together in one file, only one rule (`project.php`) is working. The required URL structure is coming for the second rule (`company.php`), but the content is empty (site layout, header and footer are coming).

Any help?