peacemaker
peacemaker

Reputation: 2591

Kentico home page shows 404 but admin works fine

I'm new to Kentico and can't seem to get the home page to load correctly, it just returns a 404. I have a site setup in IIS and I have know the app pool has access to the database I'm using for Kentico because when I change it I do see the Kentico error page about SQL access. Once I fix SQL access and reload the page, it shows a 404 again.

For example, if I access dev.mydomain.com in a browser, I get the browser 404. If I access dev.mydomain.com/admin it takes me to the Kentico admin section correctly.

There is a site setup in the Kentico settings with the correct domain alias. I have a licence for that alias too. All the tables in the DB appear correct.

I'd appreciate it if anyone could point me in the right direction.

Upvotes: 0

Views: 659

Answers (3)

peacemaker
peacemaker

Reputation: 2591

Finally found the issue. I appears that somehow the \CMSPages\PortalTemplate.aspx file had become corrupted. I replaced that and I can now visit dev.mydomain.com with no problems. Thanks for all the assistance.

Upvotes: 2

Rui
Rui

Reputation: 494

What is the home page you have in the Pages application? For example, if the page name is "Home", then try dev.mydomain.com/home and see if you can see that page. If that page loads up correctly, you can go to Settings application > Settings > Content > Web site content > Default alias path, and select that page to be the Home page. If dev.mydomain.com/home still give you 404, then there is some configuration issues.

Upvotes: 1

Brenden Kehren
Brenden Kehren

Reputation: 6117

Seems like you have the configuration in IIS setup properly. My guess is you most likely don't have your site configured properly within Kentico.

  • Do you have a home page setup in the content tree?
  • Do you have the Settings>Content>Website content>Default alias path set to that home page?

If those are not configured then you will get a not found error.

Upvotes: 1

Related Questions