If your site is developed in Drupal and your URL looks like this:
If your site URL looks like this:
http://[domain name OR IP Address]/~[accountname]/anyFolder/
Example
http://example.com/~xyzaccount/somefolder/
http://xxx.xxx.xxx.xxx/~xyzaccount/somefolder/
Then you need to set RewriteBase!in your .htaccess file that looks like below
RewriteBase /~xyzaccount/somefolder