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

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: I used CI and created my website (/thread-9161.html)

Pages: 1 2


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

[eluser]chmod[/eluser]
My site is :

www.u966.com


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

[eluser]daulex[/eluser]
awesome, I wish I could read it Smile

how did you get rid of the index.php in the url ? your links are site.com/pay/something, how did you drop the index.php ?


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

[eluser]chmod[/eluser]
it's easy.
open config.php
and, $config['index_page'] = "index.php" => $config['index_page'] = "";
that's all.


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

[eluser]Jamie Rumbelow[/eluser]
You also need a .htaccess for Apache to forward it properly.

But nice site!


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

[eluser]daulex[/eluser]
[quote author="Jemgames" date="1213548657"]You also need a .htaccess for Apache to forward it properly.

But nice site![/quote]

can you give a working example?


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

[eluser]Pascal Kriete[/eluser]
From the user guide.

Code:
RewriteEngine on

# Any folders/files that should not be rewritten
RewriteCond $1 !^(index\.php|images|robots\.txt)

# Removed the leading slash so it can be placed into subfolders
RewriteRule ^(.*)$ index.php/$1 [L]



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

[eluser]daulex[/eluser]
[quote author="inparo" date="1213552017"]From the user guide.

Code:
RewriteEngine on

# Any folders/files that should not be rewritten
RewriteCond $1 !^(index\.php|images|robots\.txt)

# Removed the leading slash so it can be placed into subfolders
RewriteRule ^(.*)$ index.php/$1 [L]
[/quote]

I tried that, domain.com/index.php/aboutus works, domain.com/aboutus doesn't ( I'm using ASO, everything should be fine... ) what do I do?


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

[eluser]chmod[/eluser]
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>


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

[eluser]daulex[/eluser]
[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


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

[eluser]Colin Williams[/eluser]
http://codeigniter.com/wiki/mod_rewrite/