Admin redirect


https://forum.kartris.com/Topic3030.aspx
Print Topic | Close Window

By bpaluch - Thu 8 May 2014
When I try to go the the admin area by going to domain.com/admin it takes me to the 404 page. It only works with another forward slash after the word admin such as domain.com/admin/ in order to access the back end. I think this is a small fix that would be greatly appreciated.
By BORNXenon - Wed 21 May 2014
You need to put the trailing slash in because 'Admin' is a directory and not a page.

If you want to be able to access the admin section from domain.com/admin you need to add a 301 redirect to your web.config file, e.g.

<!-- 301 Redirects -->
<location path="admin">
<system.webServer>
<httpRedirect enabled="true" destination="http://domain.com/Admin/" httpResponseStatus="Permanent" />
</system.webServer>
</location>



Hope this helps.
By Mart - Thu 29 May 2014
Good advice - probably not a bad idea for us to put this into the webconfig as standard.