Running WordPress with Tilde (~) in Site URL

For example to run WordPress on a URL such as:

Change siteurl and blogname in the options table to the above url.

Change default htaccess redirects to:

RewriteEngine On
RewriteBase /~mysite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /~mysite/index.php [L]

This is useful if you need to access an account on the server using the account username rather than the domain