LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-10-2013, 12:31 AM   #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


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 www.domain.com/something.php?asd=327154723448 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


All times are GMT -5. The time now is 05:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration