request rewrite emergency*
saiyan
nginx-forum at nginx.us
Sun Oct 4 05:36:20 MSD 2009
Hello everybody here in NGINX
Hello Igor, and others.
I need a help regarding rewrite problem
Source:
#
RewriteEngine on
# Some hostings require RewriteBase to be uncommented
# Example:
# Your store url is http://www.yourcompany.com/store/cart
# So "RewriteBase" should be:
# RewriteBase /store/cart
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . index.php?sef_rewrite=1
#RewriteCond %{REQUEST_FILENAME} .*\/catalog\/.*
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteCond %{REQUEST_FILENAME}/index.html !-f
#RewriteRule . index.php?sef_rewrite=1
#
i try this one:
location / {
if ($request_filename ~ "\.html$") {
rewrite ^/(.*)/t-([0-9]+)\.html$ /index.php?sef_rewrite=1 permanent;
}
}
but it doesnt work, -__-
please guide me, thank you very much.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,11040,11040#msg-11040
More information about the nginx
mailing list