Codeigniter + Rewrite rules

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
lestat
-


Joined: 15 Sep 2003
Posts: 130
Location: GREEN BAY

PostPosted: Tue Sep 04, 2012 6:06 pm    Post subject: Codeigniter + Rewrite rules Reply with quote

Hiya,

I'm getting a bit confused on this. I have the following CI site:
/intranet/dies

I set my Rewrite rules as follows:
Virtual Path Regex:
Code:
^/intranet/dies/(.*)$

Internal redirect to:
Code:
 /intranet/dies/index.php?/$1


Codeigniter config:
Code:
$config['index_page'] = '';
$route['default_controller'] = "dies";


It seems to work because I no longer see /intranet/dies/index.php/cont1/meth1/param. The 'index.php' in the URI is gone. Goal achieved

However:
/intranet/dies SUCCESS
/intranet/dies/view/4 FAIL CI 404
/intranet/dies/dies/view/4 SUCCESS
/intranet/dies/index.php/dies/view/4 SUCCESS

Does this look like a CI issue more than a server issue?

Thanks for any helps ;-)
Back to top View user's profile Send private message AIM Address MSN Messenger
lestat
-


Joined: 15 Sep 2003
Posts: 130
Location: GREEN BAY

PostPosted: Mon Sep 17, 2012 8:55 pm    Post subject: [ RESOLVED ] Reply with quote

This was indeed a CodeIgniter issue. nothing to do with Abyss. The rewrite rule was working correctly.
_________________
XP Pro sp2
Abyss Web Server X2 (v 2.9.3.5)
PHP 5.3.8
Back to top View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group