index.php on subdirectory |
[eluser]Lima[/eluser]
I have developed some web application using CI. I always put index.php on root directory. When I installed into my client computer, they have index.php and .htaccess too on root directory. I think I must move my index.php into subdirectory like /sub, but my application does not work well. Can anyone help me how to configure .htaccess when I put my index.php on /sub/index.php ? because when I access http://www.clientsite.com/sub/ CI says "Page not found"
[eluser]Pascal Kriete[/eluser]
A really useful thing would be the content of your .htaccess, but assuming you're using the default: Code: // Change this:
[eluser]wiredesignz[/eluser]
I prefer option no. 1 Code: RewriteRule ^(.*)$ index.php/$1 [L]
[eluser]Lima[/eluser]
I'm using CI default configuration. how about Code: RewriteBase /
[eluser]wiredesignz[/eluser]
Use whichever tickles your pickle. Good luck. And Welcome to CI forums
[eluser]Lima[/eluser]
It realy nice, so simple. I'm using /sub/.htaccess Code: RewriteEngine on
|
Welcome Guest, Not a member yet? Register Sign In |