Welcome Guest, Not a member yet? Register   Sign In
Routes file doesn't work
#1

(This post was last modified: 06-07-2017, 04:52 AM by Maurice.)

I will give you my files first, and after that I will explain my problem:

application/config/routes.php filehttps://pastebin.com/jbBeqmEs
application/controllers/Users.php filehttps://pastebin.com/6KwPn5Cq
application/view/users/registration.php filehttps://pastebin.com/ZrY8nhxu

When I try to enter my beta domain, which is


Code:
http://drpciv.mauriceltd.co.uk/registration

I recieve 

Quote:404
Not Found
The resource requested could not be found on this server!

But I declared the route in the route.php file.. I read everything about routing from documentation but still I don't have any ideea why this doesn't work.
Reply
#2

change directory

application/users/registration.php

to

application/view/users/registration.php
Reply
#3

Hi Maurice,

Do you have proper .htaccess file in the root path of your website? It should be there to route the request to your index.php file. First check whether http://drpciv.mauriceltd.co.uk/index.php/registration is working. If that is the case then the issues with your .htaccess file.

If so, you can follow the article here at http://www.thephpcode.com/blog/view/remo...niter.html to fix the issue.
Using and  Heart  CodeIgniter for more than 8 years and own a CodeIgniter website generator at thephpcode.com.
Reply
#4

The directory is correct, I mistyped.
Reply
#5

I did the .htaccess thing and the problem is not that, now I still get 404 error code, but in an CodeIgniter template display
Reply
#6

In your form you are not telling it where to go on the action field.
What did you Try? What did you Get? What did you Expect?

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

(06-09-2017, 06:37 AM)Maurice Wrote: I did the .htaccess thing and the problem is not that, now I still get 404 error code, but in an CodeIgniter template display

application/controllers/Users.php <- is the real name of the file the first letter uppercase too? did you try http://drpciv.mauriceltd.co.uk/users/registration ?

InsiteFX
action is not required. Maurice can not access http://drpciv.mauriceltd.co.uk/registration
Reply




Theme © iAndrew 2016 - Forum software by © MyBB