redirect from base url

Sentoki

Joined: 2013-10-12
Posts: 1
Posted: Sat, 2013-10-12 07:27

I have a problem with removing index.php from url.
I uncomment lines in .htaccess:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /gallery
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^index.php/(.*) $1 [QSA,R,L]
</IfModule>
And when i open gallery with index.php in url all work fine, but when i open site/gallery/ it redirect me to site/gallery/installer
RewriteEngine on host work fine, because another scripts (in own folders with own .htaccess) on this site use RewriteEngine too. What can be wrong?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-10-13 04:38

did you install gallery in a directory called gallery?
RewriteBase /gallery

Real world examples help the rewrite experts so best post some real urls.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team