Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

404 Error - Server 2016 IIS 10

Started by Matt 9 years ago · 7 replies · 2362 views
9 years ago

Hi,

I managed to install Grav Core with no issues on Server 2016 IIS10. I tried installing Core + Admin but i keep getting the 404 when i launch the website.

it goes to localhost/admin - i have installed URL Re-write.

I've tried installing the core, then installing the admin portal via BASH, but it still doesn't work. It seems that anything other than localhost works if i add a forward slash to any sub pages, it goes to a 404 error page.

This definitely looks like a rewrite issue. Any ideas on how to fix?

Any have will be greatly appreciated.

9 years ago

404's errors are usually caused by rewrite issues. Even if you have installed rewrites, you still need to setup the rewrites so that they know how to process things. Here is a sample config for IIS: https://github.com/getgrav/grav/blob/develop/webserver-configs/web.config

Also if you continue to have problems then check this: https://learn.getgrav.org/troubleshooting/page-not-found

9 years ago

Really struggling with this one! I've come over from a ASP.NET / IIS background and really could do with some advice on how to get the rewrite to work. I can't see much info relating to IIS configuration.

9 years ago

I'm afraid being mac-based I have very little experience with IIS. There are some users that do use it and I suggest hoping on or slack channel and ask there?

9 years ago

Hi Rhuk,

I've managed to solve it. I hope it's a permanent fix and i dont find any other related issues!

I moved webserver-configs/web.config to the root of the website. I've left it in it's original location also.

Do you think this will have any adverse effects?

9 years ago

should be fine. It's the same thing for apache, you just put .htaccess in the root of the site.

7 years ago

I have an error called the Mac error code 43 , when I am trying to install the Grav Core I am getting this error, Any solution regarding the issue will be highly appreciated, As per your issue, that might be an issue with the website, try after some time and try to reinstall the browser if the website is blocked or not.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 101 16 hours ago
General · by pamtbaau, 22 hours ago
1 68 21 hours ago
General · by Andy Miller, 1 day ago
0 53 1 day ago
General · by Marcel, 12 months ago
6 361 5 days ago
General · by Duc , 6 days ago
3 49 6 days ago