I'm trying to put up a demo site for a client and I cant get url rewriting to work properly. The site is located at mysite.com/client. The home page works ok, but when I try mysite.com/client/admin it fails. It works on mysite.com/client/index.php/admin but that's far from ideal :S My .htaccess is as follows:
And my config.php is set to:
I've tried every config I've come across on the web with no success. asked 19 Dec '10, 22:31 iign
showing 5 of 8
show 3 more comments
|
Can you point us to the actual site and files you are referring to? We need to take a look at the account to see what type of application this is, and what the directory structure is from rewrite's point-of-view. Thanks!
We tried searching the account ourselves but found many, many config.php and .htaccess files.
My account is same as my username here. The site is ign.com.uy (WP) and the CodeIgniter demo is ign.com.uy/bruster/
The config is located at webapps/bruster/system/application/config/config.php
The .htaccess is at webapps/bruster/.htaccess Thanks!
".htdocs" won't get the job done - the rewrite rules need to be in a file called ".htaccess"
Sorry, I meant htaccess! I'm still asleep...
You should try replacing "RewriteRule ^(.)$ index.php/$1 [L]" with "RewriteRule ^(.)$ index.php?$1 [L]".
Another thing you may need is a "RewriteBase /" line right after the "RewriteEngine On" statement.
If this doesn't help, I'd suggest opening a support ticket.
This didn't do the trick. I'll open a ticket when I get home. Thanks.
any update on this problem? did the ticket solved it? I am not yet on WebFaction and Codeigniter is a prerequisite for me, so I would like to know if it works without problem... thanks
Yes,this was marked as resolved.
We have many users running CodeIgniter in their accounts, so you shouldn't have any issues. If you do, then we are here 24/7 to help with any questions along the way.