> Необходимо сделать редирект http://anyhost/qwe.html на http://localhost:8080/qwe.html.
> Пытался сделать так
> RewriteCond %{HTTP_HOST} !^http...localhost(.*)$
> RewriteRule (.*) http://localhost:8080/%{REQUEST_URL} [R=301,L,NC]
> Есть какие-нибудь идеи?google: RewriteRule 301
2. If you need to redirect http://mysite.com to
http://www.mysite.com and you've got mod_rewrite enabled on
your server you can put this in your .htaccess file:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
or this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]