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

[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] ?
#2

[eluser]Aken[/eluser]
RewriteBase /, or remove it entirely.




Theme © iAndrew 2016 - Forum software by © MyBB