[eluser]Unknown[/eluser]
I'm using .htaccess to get rid of the index.php in my url. Example, instead of localhost/folder/index.php/controller/function. I want it to be localhost/folder/controller/function.
I have achieved it in working locally, using these codes:
[code]
RewriteEngine On
Rewritebase /folder/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
[code]
Now I'm uploading it in the web, but on a subdomain.
what should i do to the Rewritebase?
Should it be
[code]
Rewritebase /folder.domain.com/
[code] ?