Welcome Guest, Not a member yet? Register   Sign In
mode rewrite
#12

[eluser]danmontgomery[/eluser]
Have you checked the apache error log, like it says to?

Code:
RewriteRule ^(.*)$ /www/CI_forum/index.php/$1 [L]

.htaccess should be in the same directory as index.php, so no path should be necessary.

Code:
RewriteRule ^(.*)$ index.php/$1 [L]

The url you should be going to is index.php, not your application path... If that directory isn't your web root, you need to add RewriteBase to .htaccess... In this case, it looks like all of your files are in /www/CI_forum/, so in .htaccess:

Code:
RewriteEngine on
RewriteBase /www/CI_forum/
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

I'm not sure that moving your system/application directories before you even get the default controller working is a great idea...


Messages In This Thread
mode rewrite - by El Forum - 03-23-2010, 12:07 PM
mode rewrite - by El Forum - 03-23-2010, 12:12 PM
mode rewrite - by El Forum - 03-23-2010, 12:15 PM
mode rewrite - by El Forum - 03-23-2010, 12:25 PM
mode rewrite - by El Forum - 03-23-2010, 12:34 PM
mode rewrite - by El Forum - 03-23-2010, 12:53 PM
mode rewrite - by El Forum - 03-23-2010, 01:31 PM
mode rewrite - by El Forum - 03-23-2010, 02:09 PM
mode rewrite - by El Forum - 03-23-2010, 04:16 PM
mode rewrite - by El Forum - 03-24-2010, 06:20 AM
mode rewrite - by El Forum - 03-24-2010, 01:23 PM
mode rewrite - by El Forum - 03-24-2010, 01:54 PM
mode rewrite - by El Forum - 03-24-2010, 02:28 PM
mode rewrite - by El Forum - 03-26-2010, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB