redirect all pages in the subdomain to the domain
-
Hello
I am looking for which method to use for a redirect problem.
To explain, I had a site “www.domain.fr” + a subdomain “subdomain.domain.fr”. This weekend I deleted the subdomain “subdomain.domaine.fr” because I no longer need it. So I just have “www.domain.fr”.
The problem is that google had indexed the pages of the subdomain. So I would like to redirect all pages in the subdomain to a specific page in the domain.
I tried :Source URL: https://subdomain.domain.fr/(.*)
Target URL: https://subdomain.domain.fr/specific-pageand it is written:
“This will be converted to server redirect for the domain subdomain.domain.fr.
To avoid greedy regular expressions, you can use ^ to anchor it to the beginning of the URL. For example: ^ https: //subdomain.domain.fr/ (. *) ”Server redirect, is this good for me?
I added the “^” at the beginning as indicated, did I do it right?Thank you ! ??
- The topic ‘redirect all pages in the subdomain to the domain’ is closed to new replies.