Jump to content

My Routes aren't working or for some reason my app is broken!?


adgower

Recommended Posts

Okay, so you can go to

 

http://fc.gowerpowered.com but if you go to http://fc.gowerpowered.com/friendcodes

 

it says that url doesn't exist!

 

and if I look in my error log it says I don't have my MODEL_PATH defined, and I do I my MODEL_PATH defined!

 

By the way this is a MVC app!

 

please help me find out what is going on, I have been looking at it for two days!

here is my .htaccess file

RewriteEngine On
RewriteRule !(\.gif|\.png|\.jpe?g|\.css|\.js|\.php|^public/.*)$ index.php [nocase,last]

 

and here is me defining my MODEL_PATH

define('MODEL_PATH', SERVER_ROOT.APP_ROOT.DS.'models'.DS);

 

and here is where I include my config.php file where I have my defined MODEL_PATH

include('config.php');

 

and here is where it fails when you go to http://fc.gowerpowered.com/friendcodes

include(MODEL_PATH.'friendcode.php');

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.