Welcome Guest, Not a member yet? Register   Sign In
htaccess in a subdomain

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:

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]

Now I'm uploading it in the web, but on a subdomain.
what should i do to the Rewritebase?

Should it be
Rewritebase /folder.domain.com/
[code] ?

RewriteBase /, or remove it entirely.

Theme © iAndrew 2016 - Forum software by © MyBB