Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-10-2013, 12:31 AM   #1
LQ Newbie
Registered: Jun 2012
Location: /home/ubungu
Posts: 27

Rep: Reputation: Disabled
[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: will redirect to

I want to rewrite redirect to

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nginx rewrite rule for url like Ranjith KR Linux - Server 2 03-10-2013 10:38 PM
nginx rewrite url ubungu Linux - Newbie 1 07-19-2012 08:51 AM
Problem with dynamic url rewrite and redirect in nginx??? gavin2u Linux - Server 3 05-27-2010 11:25 PM
nginx 0.7.65 rewrite url with querystring problem? gavin2u Linux - Server 0 04-07-2010 08:46 PM
mod rewrite based on URL string sir-lancealot Linux - Server 1 06-05-2009 05:09 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration