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

[eluser]BlackstoneDigital[/eluser]
Hey guys, love Codeigniter, saves me so much time.. But not when my code is acting up!

My solution works fine on my testing server (local XAMPP on Windows).

My routing code is as follows:

Code:
$route['blog\.xphp'] = "blackstone/blog";
$route['(:any)\.php'] = "blackstone/staticpage/$1";
$route['(:any)\.xphp'] = "blackstone/dynamicpage/$1";

On my local machine Codeignitor picks up the different functions perfectly. I have an index() function in controllers/blackstone.php, and that just redirects to staticpage('home') so I could catch entry without a request.

However, on my production server, all it picks up is the homepage, no matter what request I initiate.

For example: http://mywebsiteexample.co.uk/home.php works fine
but http://mywebsiteexample.co.uk/solutions.php just keeps on displaying the home page.

If I remove the code from the index function it displays a blank page.

What am I doing wrong here guys? It seems odd that it would work just as expected on my development server, but not on my main server..

Tom,
Blackstone Digital.
#2

[eluser]BlackstoneDigital[/eluser]
Sorry for the bump, does anyone have any ideas?




Theme © iAndrew 2016 - Forum software by © MyBB