0

I'm trying to remove the index.php from the url in a codeigniter project thats hosted inside a subdomain 'test'

I've tried the following .htaccess, but I'm getting an internal server error.

RewriteEngine On 
RewriteBase /test
RewriteRule ^(.*)$ /index.php/$1 [L]

can anyone see the problem, thanks

1
  • just to clarify it's a subfolder 'test', not domain sorry Commented Nov 19, 2010 at 20:34

1 Answer 1

3

I use this... should work on a subdfolder as well, I think..

RewriteEngine on
RewriteCond $1 !^(index\.php|public|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 
Sign up to request clarification or add additional context in comments.

1 Comment

that's very odd. Have you tried it out on a web hosts' server or just localhost?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.