CodeIgniter Forums
I used CI and created my website - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: I used CI and created my website (/showthread.php?tid=9161)

Pages: 1 2


I used CI and created my website - El Forum - 06-16-2008

[eluser]andreagam[/eluser]
This works for me:
Code:
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
<IfModule mod_security.c>
   SecFilterEngine Off
   SecFilterScanPOST Off
</IfModule>

Daulex, love your cat... :-)


I used CI and created my website - El Forum - 06-16-2008

[eluser]chmod[/eluser]
[quote author="daulex" date="1213620266"][quote author="chmod" date="1213617456"]try :

<Directory "D:/AppServ/www/">
Options Indexes FollowSymLinks MultiViews ExecCGI
RewriteEngine on
RewriteCond $1 !^(css|bbs|images|javascript|fckeditor|index\.php|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
AllowOverride All
Order allow,deny
Allow from all
</Directory>[/quote]
500: Internal Server Error Sad[/quote]


you can download my http.conf
httpd.conf


I used CI and created my website - El Forum - 06-16-2008

[eluser]daulex[/eluser]
[quote author="CI andrea" date="1213622161"]This works for me:
Code:
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
<IfModule mod_security.c>
   SecFilterEngine Off
   SecFilterScanPOST Off
</IfModule>

Daulex, love your cat... :-)[/quote]
thanks dude Smile this just gives me the index Sad


I used CI and created my website - El Forum - 06-16-2008

[eluser]InterCoder[/eluser]
I'm using this mod_rewrite to get rid of the index.php in de URI:

Code:
RewriteEngine on

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



I used CI and created my website - El Forum - 06-16-2008

[eluser]daulex[/eluser]
[quote author="InterCoder" date="1213640696"]I'm using this mod_rewrite to get rid of the index.php in de URI:

Code:
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
[/quote]
same thing, domain.com/aboutus returns index Sad


I used CI and created my website - El Forum - 06-16-2008

[eluser]InterCoder[/eluser]
Weird...


I used CI and created my website - El Forum - 06-16-2008

[eluser]daulex[/eluser]
[quote author="InterCoder" date="1213643822"]Weird...[/quote]
I know, I kinda gave up on that Sad


I used CI and created my website - El Forum - 06-17-2008

[eluser]jrad[/eluser]
i think you have to set the base_url first:

$config['base_url'] = http://domain.com/yoursite

then set:

$config['index_page'] = '';

then add .htaccess file on your codeigniter/system folder...

it worked for me...


I used CI and created my website - El Forum - 06-17-2008

[eluser]daulex[/eluser]
[quote author="jrad" date="1213701483"]i think you have to set the base_url first:

$config['base_url'] = http://domain.com/yoursite

then set:

$config['index_page'] = '';

then add .htaccess file on your codeigniter/system folder...

it worked for me...[/quote]

I did that yesterday and it worked Smile yay! Big Grin