Sorry for the strange phrasing.
I'm working on a project to upgrade an University's website (this is not a school project, they hired the company I work for to do it).
We're working with wordpress, and the pages for professors are not single pages to be displayed directly, instead, they're shown in a modal on top of the main page.
To do that, I used $_GET, so when the user enters www.example.com/?prof=isaac-newton on their browser, they see the page at www.example.com with a modal on top of it, 
this modal has the content of www.example.com/professors/isaac-newton in it.
The clients didn't like this very much, because their current system works with the user entering www.example.com/~isaac-newton, and they want to keep this standard.
Finally, my question is:
Can I make PHP interpret something such as
~isaac-newtonin the url as?prof=isaac-newton? How?
Here is my current code which makes ?prof= work:
<?php
if (isset($_GET['prof']))
{
    $prof = $_GET['prof'];
?>
    <script type="text/javascript">
        $('#modal').modal({'remote' : 'http://www.example.com/professor/<?php echo $prof; ?>/'});
    </script>
<?php
}
?>
 
     
     
     
    