OrchardCMS / OrchardDoc

Documentation for Orchard 1.x (not Orchard Core, for that see https://docs.orchardcore.net/).
http://docs.orchardproject.net
142 stars 241 forks source link

301 test #218

Closed rtpHarry closed 8 years ago

rtpHarry commented 8 years ago

added a url rewrite section to the web.config to redirect /Documentation/ to the homepage.

Stops users potentially seeing an 404 error page and also confirms that 301 redirects are enabled on the server for future use when reorganising.

agriffard commented 8 years ago

Is it supposed to work ? It doesn't seem to redirect when I go to an unexisting url. Ex : http://docs.orchardproject.net/Documentation/Installing-Orchardblalblabla

rtpHarry commented 8 years ago

Its working.

It was just stop http://docs.orchardproject.net/Documentation/ from showing an error saying you're not allowed to view directory listing or something similar, not to catch all 404's.

The future use of it is intended for things like renaming files or when the attached zip files are upgraded because they have the version number in them.