Redirect from domain to sub-domain with htacess

Asked

Viewed 24 times

0

I’m having trouble migrating from one site x to another y in a domain.

EX:

siteantiquity with.

for

Subdomain.sitenovo.com

I created htacess:

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

The problem he doesn’t redirect right. It goes to root always never going to the link from the old to the new:

Ex:

old site.com/category/link

for

Subdomain.sitenovo.com

  • Managed to solve your problem?

1 answer

0

See if this solves:

Redirect 301 ^(www.)?siteantigo\.com\/(.*)$ http://subdominio.sitenovo.com/$1
  • Error: Additionally, a 404 Not Found error was encountered while trying to use an Errordocument to Handle the request.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.