Dear all,
example:
server {
listen 8080;
server_name example.com
location / {
index index.php
if (!-e $request_filename) {
rewrite ^/([0-9]+)\.htm /$1 redirect;
}
}
}
i want 'http://example.com/123456.htm' redirect to 'http://example.com/123456' Not 'http://example.com:8080/123456'
Help me please!
Edited 1 time(s). Last edit at 03/04/2010 12:09AM by lamvnvc.