Redirect from domain to sub-domain with htacess

0

I'm having trouble migrating from one site x to another y in a subdomain.

EX:

siteantigo.com

for

subdomain.sitenovo.com

I created the htacess:

RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
Options +FollowSymLinks
RewriteRule (.*) http://subdominio.sitenovo.com/$1 [R=301,L]

The problem that it does not redirect right. It goes to the root ever never going to link from old to new:

Ex:

siteantigo.com/categoria/link

for

subdomain.sitenovo.com

    
asked by anonymous 28.10.2015 / 19:20

1 answer

0

See if this resolves:

Redirect 301 ^(www.)?siteantigo\.com\/(.*)$ http://subdominio.sitenovo.com/$1
    
28.10.2015 / 22:18