Admin redirect

Posted By bpaluch Thu 8 May 2014
Add to Favorites0
Author Message
bpaluch
 Posted Thu 8 May 2014
Supreme Being

Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)Supreme Being - (44,942 reputation)

Group: Forum Members
Last Active: Thu 23 Jul 2020
Posts: 70, Visits: 175
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.
BORNXenon
 Posted Wed 21 May 2014
Supreme Being

Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)Supreme Being - (33,325 reputation)

Group: Forum Members
Last Active: Mon 23 Apr 2018
Posts: 59, Visits: 291
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.
Mart
 Posted Thu 29 May 2014
Top Banana

Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)Top Banana - (94,135 reputation)

Group: Administrators
Last Active: Wed 18 Nov 2020
Posts: 148, Visits: 3,450
Good advice - probably not a bad idea for us to put this into the webconfig as standard.

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top