LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [Help] Rewrite URL failure in nginx - url end with #string (https://www.linuxquestions.org/questions/linux-server-73/%5Bhelp%5D-rewrite-url-failure-in-nginx-url-end-with-string-4175469087/)

ubungu 07-09-2013 11:31 PM

[Help] Rewrite URL failure in nginx - url end with #string
 
Hi everybody

I have rewrite rule:

rewrite ^/f[\d]+/.+-([\d]+)/index([\d]+).html /threads/$1/page-$2 permanent;

Result: http://domain.com/f234/thread-name.1234/index1.html will redirect to http://domain.com/threads/1234/page-1

I want to rewrite http://domain.com/f234/thread-name.1...html#post56789 redirect to http://domain.com/posts/56789

Please tell me how to rewrite :(. I can't get 56789 value :((


All times are GMT -5. The time now is 01:06 AM.