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:
vidan
October 14, 2011, 9:30pm
2
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?
vidan
October 14, 2011, 10:15pm
3
yes, check in the logs, bla-bla.html not found
Posted at Nginx Forum:
vidan
October 14, 2011, 10:40pm
4
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]
vidan
October 14, 2011, 11:17pm
5
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]
vidan
October 17, 2011, 2:25pm
6
vidan
October 14, 2011, 11:03pm
8
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:
vidan
October 28, 2011, 4:56pm
9
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]