LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-09-2013, 11:31 PM   #1
ubungu
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: 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 (
 
  


Reply



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 www.domain.com/something.php?asd=327154723448 Ranjith KR Linux - Server 2 03-10-2013 09:38 PM
nginx rewrite url ubungu Linux - Newbie 1 07-19-2012 07:51 AM
Problem with dynamic url rewrite and redirect in nginx??? gavin2u Linux - Server 3 05-27-2010 10:25 PM
nginx 0.7.65 rewrite url with querystring problem? gavin2u Linux - Server 0 04-07-2010 07:46 PM
mod rewrite based on URL string sir-lancealot Linux - Server 1 06-05-2009 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:34 AM.

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