Welcome Guest, Not a member yet? Register   Sign In
Routing problem
#1

I have just uploaded the code to http://pencopyediting.com plus the database again. It used to be ok then it was all deleted sometime ago while it was being used. It was https by the way but the certificate ran out so I have removed the s from the baseurl. The front page is ok but if you go to any of the other pages you get a 404. It isn't routing properly and I have no idea why.


$route['default_controller'] = 'home';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['verify/(:any)/(:any)'] = "/home/verify/$1/$2";


is what is in config/routes.php



I am stumped - any ideas please?
Reply
#2

SEE:

CodeIgniter User's Guide - Regular Expressions
What did you Try? What did you Get? What did you Expect?

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

I think you have a problem with your .htaccess, since "http://pencopyediting.com/index.php/about" works fine, though "http://pencopyediting.com/about" gives a 404.
Reply
#4

(12-31-2018, 09:45 AM)ciadmin Wrote: I think you have a problem with your .htaccess, since "http://pencopyediting.com/index.php/about" works fine, though "http://pencopyediting.com/about" gives a 404.
Ah - I hadn't thought of http://pencopyediting.com/index.php/about . I tried a few things but not that one - thanks
Reply
#5

Brilliant that has solved it - thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB