I wish to redirect from the temporary URI like

http://subdomain.test.com/~user77/

to

http://world wide web.testing.com

This can be a temporary URI and indicates exactly the same webserver. All demands like

http://subdomain.test.com/~user77/index.php
http://subdomain.test.com/~user77/lib/javascript.js

ought to be rerouted to

http://world wide web.testing.com/index.php
http://world wide web.testing.com/lib/javascript.js

How do i accomplish this? I've the next htaccess code

RewriteCond % ^http://subdomain.test.com/~user77/$ [NC]

RewriteRule ^(.*)$ http://world wide web.testing.com/$1 [R=301,L]

However it does not appear to operate. Basically input subdomain.test.com/~user77 I begin to see the same URL (subdomain.test.com/~user77). What I am doing wrong?

UPDATE:
Full htaccess:

#####

#

# Example .htaccess apply for TYPO3 Content management systems - to be used with Apache Webserver

#

# This file includes configurations for an additional configuration options:

#

# - Compression via TYPO3

# - Configurations for mod_rewrite (URL-Spinning)

# - PHP optimisation

# - Miscellaneous

#

# If you wish to utilize it, you need to copy it towards the root folder of the TYPO3 installation (if it is

# not there already) and relabel it to '.htaccess'. To create .htaccess files work, you will need to

# adjust the 'AllowOverride' directive inside your Apache configuration file.

#

# IMPORTANT: You may want to change this file based on your TYPO3 installation!

#

# Lines beginning having a # are treated as comment and overlooked through the web server.

#

# You need to change every occurance of TYPO3root/ towards the location in which you have your site in.

# For instance:

# For those who have your site situated at http://mysite.com/

# your TYPO3root/ is simply empty (remove 'TYPO3root/')

# For those who have your site situated at http://mysite.com/some/path/

# your TYPO3root/ is a fewOrrouteOr (search and replace)

#

# You may also make use of this configuration inside your httpd.conf, however you need to modify some lines,

# begin to see the comments (look for 'httpd.conf')

#

# Questions regarding this file visit the matching Install subscriber list, see

# http://typo3.org/documentation/mailing-lists/

#

####

### Begin: Compression via TYPO3 ###

# Blending resource files helps you to save bandwidth and thus improve loading speed specifically for customers

# with reduced online connections. TYPO3 can compress the .js and .css files for you personally.

Number One) Uncomment the next lines and

2) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9'

#<FilesMatch ".js.gzip$">

#   AddType "text/javascript" .gzip

#</FilesMatch>

#<FilesMatch ".css.gzip$">

#   AddType "text/css" .gzip

#</FilesMatch>

#AddEncoding gzip .gzip

### Finish: Compression via TYPO3 ###

### Begin: Browser caching of ressource files ###

# Enable lengthy browser caching for JavaScript and CSS files.

# This affects Frontend and After sales and increases performance.

# You may also add other file extensions (like presen, png, digital), if you would like these to be longer cached, too.

<FilesMatch ".(jscss)$">

  <IfModule mod_expires.c>

    ExpiresActive on

    ExpiresDefault "access plus seven daysInch

  </IfModule>

  FileETag MTime Size

</FilesMatch>

### Finish: Browser caching of ressource files ###

### Begin: Configurations for mod_rewrite ###

# You'll need spinning, if you are using a URL-Spinning extension (RealURL, CoolUri, SimulateStatic).

<IfModule mod_rewrite.c>

# Enable URL spinning

RewriteEngine On

# Change this path, in case your TYPO3 installation is situated inside a subdirectory from the website root.

#RewriteBase /

# Rule for versioned static files, set up through:

# - $TYPO3_CONF_VARS['BE']['versionNumberInFilename']

# - $TYPO3_CONF_VARS['FE']['versionNumberInFilename']

# IMPORTANT: This rule needs to be the initial RewriteCond to be able to work!

RewriteCond % !-f

RewriteCond % !-d

RewriteRule ^(.+).(d+).(phpjscsspngdigitalpresengzip)$ $1.$3 [L]

# Stop rewrite processing, as within the typo3/ directory.

# For httpd.conf, make use of this line rather than the next:

# RewriteRule ^/TYPO3root/(typo3/t3lib/fileadmin/typo3conf/typo3temp/uploads/favicon.ico) - [L]

RewriteRule ^(typo3/t3lib/fileadmin/typo3conf/typo3temp/uploads/favicon.ico) - [L]

# Redirect http://example.com/typo3 to http://example.com/typo3/index_re.php and prevent the rewrite processing.

# For httpd.conf, make use of this line rather than the next:

# RewriteRule ^/TYPO3root/typo3$ /TYPO3root/typo3/index.php [L]

RewriteRule ^typo3$ typo3/index_re.php [L]

# When the file/symlink/directory doesn't exist => Redirect to index.php.

# For httpd.conf, you have to prefix each '%' with '%'.

RewriteCond % !-f

RewriteCond % !-d

RewriteCond % !-l

# Primary URL spinning.

# For httpd.conf, make use of this line rather than the next:

# RewriteRule .* /TYPO3root/index.php [L]

RewriteRule .* index.php [L]

</IfModule>

### Finish: Configurations for mod_rewrite ###

### Begin: PHP optimisation ###

# If you don't alter the following configurations, the default values is going to be used.

# TYPO3 works fine with register_globals switched off.

# This really is highly suggested, in case your web server has it switched on.

#php_flag register_globals off

### Finish: PHP optimisation ###

### Begin: Miscellaneous ###

# Make certain that directory entries are disabled.

#Options -Indexes

### Finish: Miscellaneous ###

# Add your personal rules here.

# ...

RewriteCond % ^http://subdomain.test.com/$ [NC]

RewriteRule ^~user77/(.*)$ http://world wide web.testing.com/$1 [R=301,L]