nirix / nanite

Simple "framework"
http://nirix.github.io/nanite/
62 stars 12 forks source link

Not working in subfolder #3

Closed pixelbart closed 7 years ago

pixelbart commented 7 years ago

Hi!

I've a problem get nanite running in a subfolder.

domain.de/ -> other stuff domain.de/subfolder/ -> Nanite Construct

Does not work. In the code i've found base_uri but is not used in the script.

Greetings

leotop commented 7 years ago

.htaccess add line after RewriteEngine On

RewriteBase /subfolder/

Example:

RewriteEngine On
RewriteBase /subfolder/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
pixelbart commented 7 years ago

Thanks leotop! Have fix it for my self for a long time ago 💃 But your solution was/is the correct one!