I have the following htaccess lines...

```
RewriteRule ^([a-zA-Z0-9]+)?$ index.php?p1=$1 [L]
RewriteRule ^~([a-zA-Z0-9]+)/([a-zA-Z0-9]+)?$ ~$1/index.php?p1=$2 [L]

```

The first line works fine, its the second line that doesn't work at all...

The first line does this....
domain.com/about -> domain.com/index.php?p1=about

What I'm trying to do with the second line...
if the url is server1.domain.com/~username/about....
I need it to translate to server1.domain.com/~username/index.php?p1=about

Basically, detecting if there is a ~

I am trying to work out my code to allow for the development url of the hostname/~username

Right now it is showing the green apache 404 not found page when trying to visit the website using that code.

Please let me know if you need any more information