Nginx for cs-cart

this is for cs-cart

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]

i know one rule only

try_files $uri $uri/ /index.php?sef_rewrite=1;
but i cant open those url with .html

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,216707,216707#msg-216707

On 14 October 2011 21:36, vidan [email protected] wrote:

but i cant open those url with .html
That should open html files ordinarily. Do you get an error message with
it?

yes, check in the logs, bla-bla.html not found

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,216707,216715#msg-216715

On Fri, Oct 14, 2011 at 04:15:00PM -0400, vidan wrote:

Hi there,

yes, check in the logs, bla-bla.html not found

Does bla-bla.html exist?

The following nginx.conf seems to do for me what you describe you want
(curl -v http://localhost:8000/there.html gives me the content of the
file; curl -v http://localhost:8000/notthere.html gives me the output
of /index.php with REQUEST_URI set to /notthere.html)

If it doesn’t do the same for you, what is different?

===
events {
worker_connections 1024;
debug_connection 127.0.0.1;
}

http {
server {
listen 8000;
include fastcgi.conf;
try_files $uri $uri/ /index.php?sef_rewrite=1;

    location = /index.php {
        fastcgi_pass  unix:php.sock;
    }
}

}

f

Francis D. [email protected]

On Fri, Oct 14, 2011 at 05:02:50PM -0400, vidan wrote:

Hi there,

hi Francis, no bla-bla.html does not exist.
its only a redirect from url like this
http://indomakeup.com/index.php?dispatch=pages.view&page_id=11
i could open something like this /url/
but can’t open url end with .html

I’m afraid that I don’t understand the problem you are reporting.

a) what do you do?
b) what do you see?
c) what do you expect to see?

and, if it isn’t immediately clear:

d) what is the difference between b) and c)?

location / {
try_files $uri $uri/ /index.php?sef_rewrite=1;
}

My current guess is that you have another location{} block in your
configuration that is being used instead of this one for the request
you are making.

But without more information, it remains guesswork.

f

Francis D. [email protected]

Hello,

please do open http://kb2.cs-cart.com/seo-not-work#1

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,216707,216795#msg-216795

update pls

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,216707,217391#msg-217391

hi Francis, no bla-bla.html does not exist.
its only a redirect from url like this
http://indomakeup.com/index.php?dispatch=pages.view&page_id=11
i could open something like this /url/
but can’t open url end with .html

location / {

try_files $uri $uri/ /index.php?sef_rewrite=1;

}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,216707,216718#msg-216718

On Thu, Oct 27, 2011 at 01:08:03AM -0400, vidan wrote:

Hi there,

update pls

a) what do you do?
b) what do you see?
c) what do you expect to see?

As a very specific example: when you do

curl -v http://localhost/url.html

and the file url.html does not exist, what do you want to have
happen? And what do you actually see happen?

And when you do

curl -v http://localhost/url/

and the directory url does exist, what do you see, and what do you
want to see?

And when the directory url does not exist, what do you see, and what
do you want to see?

From and nginx config perspective, I’m not seeing any problems in what
has been suggested to you.

So if you are seeing problems, and you want some help, it would be to
your advantage to make it easy for people to help you.

All the best,

f

Francis D. [email protected]

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