Welcome Guest, Not a member yet? Register   Sign In
routing to IIS though I am using XAMPP in port 81
#1

My XAMPP is working in port 81.

But once I test the example given in the below url the routing is happening to IIS directory.

https://www.tutorialspoint.com/codeignit...tabase.htm


routing entry is 

$route['stud'] = "Stud_controller";
$route['stud/add'] = 'Stud_controller/add_student';
$route['stud/add_view'] = 'Stud_controller/add_student_view';
$route['stud/edit/(\d+)'] = 'Stud_controller/update_student_view/$1';
$route['stud/delete/(\d+)'] = 'Stud_controller/delete_student/$1';




But while invoking the URL Stud_controller/add_student get the below message

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.


Most likely causes:
  • The directory or file specified does not exist on the Web server.

  • The URL contains a typographical error.

  • A custom filter or module, such as URLScan, restricts access to the file.

Things you can try:
  • Create the content on the Web server.

  • Review the browser URL.

  • Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here.

Detailed Error Information:
Module
   IIS Web Core
Notification
   MapRequestHandler
Handler
   FastCGI
Error Code
   0x80070002
Requested URL
   http://[::1]:80/code/index.php/Stud_controller/add_student
Physical Path
   C:\inetpub\wwwroot\code\index.php\Stud_controller\add_student

Logon Method
   Anonymous
Logon User
   Anonymous


IT MAY BE NOTED THAT THOUGH CI IS HOSTED IN THE XAMPP SERVER OF MY LAPTOP THE Physical path is taken as the IIS path.

pl help to resolve this issue.

Thank in advance.
VJU

Attached Files Thumbnail(s)
   
Reply
#2

1) What version of Windows are you running?

2) Are you using IIS?
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

The error message clearly shows that you've requested a URL on port 80, not 81.
Reply
#4

Windows 8 and 10 have IIS turned on when installed you can turn it off if you do not use it in the advanced part on the control panel un-install

I had to do that when I installed XAMPP on my Windows 10 Pro x64
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB