master page Redirection

Eslam Zaghloul asked on March 11, 2019 12:51

master page URL redirection not working it always return 404 instead of return the url

Recent Answers


Roman Hutnyk answered on March 11, 2019 13:03

A couple of questions:

  • why would you need to setup redirection for the master page?
  • what is that you're trying to achieve?

Master page is just a wrapper for any page within your site - user never navigates actual master page, but any other page wrapper with it.

Normally you need to setup default page (the one user reaches whenever he navigates your domain root) under Setting -> Content -> Default alias path. In case there are multiple site running on the same instance you need to set this up for each site by choosing it at the left top of the Settings screen.

1 votesVote for this answer Mark as a Correct answer

Eslam Zaghloul answered on March 11, 2019 13:25

i already did these steps but it return the same iam trying to make my domain default page top be home page not the masterpage

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on March 11, 2019 13:48

So currently your site has default page setup, but user gets 404 - correct?

Have you double checked if default page URL is correct? - maybe there is a typo?

Does the URL for default page exits at all? Is it URL of Kentico page (meaning the one that lives under the content tree)?

Are you getting 404 if you navigate the page directly?

Can you see any errors in the event log when getting 404?

0 votesVote for this answer Mark as a Correct answer

Eslam Zaghloul answered on March 11, 2019 13:52

i was putting home page inside folder named header menu i just remove it and remove all urls that related to this folder but it still not working

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on March 11, 2019 13:56

I'd recommend you to navigate the page, you want to set as default, in Kentico admin -> Pages application, go to Properties -> General for that page, copy Alias path, go to Kentico Settings -> Content and paste copied URL into Default alias path box.

0 votesVote for this answer Mark as a Correct answer

Eslam Zaghloul answered on March 11, 2019 14:21

not working :S

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on March 11, 2019 14:25

Does the page URL you're trying to redirect to working on its own? Meaning when you go directly to that page

0 votesVote for this answer Mark as a Correct answer

Eslam Zaghloul answered on March 11, 2019 14:31

yes

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on March 11, 2019 14:34

When you specify Default page alias in Setting - have you selected the site you're setting the page for in top left corner?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 11, 2019 14:38

So, you want to have the main, landing page to be like domain.com and not domain.com/home? If yes, then at first make sure you have cleared the browser cache or use different browser - redirects are often cached in the browser.
Then set the desired landing page as the Default alias path, in my case it will be /home. See screen shot.
Then go to the URLs and SEO settings, and set the Default page (screen shot) to Use domain root.
Now, you can check the landing page live URL in Pages application -> Properties -> General (screen shot). As you can see in the screen shot, the URL is missing the /home since this page is set as default alias path and the default page is set to use domain root.

0 votesVote for this answer Mark as a Correct answer

Eslam Zaghloul answered on March 11, 2019 14:58

404-file or directory not found

0 votesVote for this answer Mark as a Correct answer

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