Very Simple htaccess rule

Hi Nginx.

Properly so simple you may laugh , but this world save my day :slight_smile:

RewriteEngine On

RewriteBase /

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ site/$1 [NC,L,QSA]
RewriteRule ^$ site/index.php [NC,L,QSA]

When you hit the i simple need to access

After this info , i would like to study the rules more intense.
But i’m in a shortage of time right now.

Thanks In advance…


Posted at Nginx Forum:,183435,183435#msg-183435

try this:

location / {
try_files $request_uri $request_uri/ site$request_uri site/index.php;

Note: You shold define the php location in order to serve php page.

Il 17/03/2011 11:03, michaelvv ha scritto:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs