Welcome Guest, Not a member yet? Register   Sign In
.htaccess wow's
#1

[eluser]OES[/eluser]
Hi Chaps.

I am a complete newbie to ci so please be gentle.

I have just installed the basic package and all is working well as it should be.

But as with many posts n these forums I cannot remove the index.php file without getting 404 errors.

I am trying ci on a subdmain running apache2, php5 on the Ubunto distro.

I have removed the index.php from the congfig ie,

Code:
$config['index_page'] = "";

I have tried alot of different variations of the mod_rewrite. ie.

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

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>

I cannot get any of these to work.

I know mod_rewrite is working on other domains.

I hope someone can advise before I have no hair left.

thanks in advance.
#2

[eluser]hybriid[/eluser]
did you uncomment the following line in your Apache httpd.conf file?

LoadModule rewrite_module modules/mod_rewrite.so
#3

[eluser]Elliot Haughin[/eluser]
Check your rewrite base is correct...

/ - means it's in the root of the documentroot... like jo.com/index.php

/ci/ - means it's in a subdirectory.




Theme © iAndrew 2016 - Forum software by © MyBB