Kentico redirecting to www.domain

Breck Caine asked on September 22, 2021 10:42

I duplicated a site by coping the database and zipping the entire project folder and copying to a new server where they were restored. The new site is mapped to my.domain.dev, but Kentico keeps redirecting to www.my.domain.dev. The https://my.domain.dev/admin function works fine with no redirect. Process domain prefix: is set to Always use domain without www prefix.
I know this is Kentico doing the redirect, since when I comment out this line in the web.config, I am able to pull up a plain ASP.NET page without a redirect. Any ideas what else I can look for?

Recent Answers


David te Kloese answered on September 22, 2021 11:02

Make sure to check the settings on both Site specific and global (drop down top left, might indicate it's overwritten)

Check the configuration of the Site in the Sites module, perhaps a redirect there.

Can you check if there are any IIS redrects in place? Check for the <Rewrite> section in <system.webServer> of your web.config.

0 votesVote for this answer Mark as a Correct answer

Breck Caine answered on September 23, 2021 13:32

I have checked and there are no redirects in IIS and nothing specified in Kentico. This worked when I switched over to a different test domain ending in .net. Maybe this is something specific to the a domain ending in .dev.

0 votesVote for this answer Mark as a Correct answer

David te Kloese answered on September 23, 2021 14:44

would you have used that .dev domain before? As in could it be your browser remembering to redirect to www?

Try on a browser you're not commonly using if it still redirects.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.