Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: nginx rewrite issue
PostPosted: Mon Nov 14, 2011 7:15 pm 
Offline
Junior Member

Joined: Fri Nov 11, 2011 11:07 pm
Posts: 22
okay i am having some problems with nginx write algorithm with wordpress.

i am using this for the rewrite and it works good;
Code:
server_name         www.domain.com domain.com;
    if ($host != 'domain.com') {
    rewrite ^/(.*)     http://domain.com/$1 permanent;
    }

it makes this url;
http://domain.com/?author=1
to this;
http://domain.com/author/username/
which is good but with an url like this;
http://domain.com/?author=1&type=like
it makes it;
http://domain.com/author/username/?type=like

and i am not getting any error but the query is not working.

what i am missing?
thanks.


Top
   
 Post subject:
PostPosted: Mon Nov 14, 2011 11:26 pm 
Offline
Junior Member

Joined: Fri Nov 11, 2011 11:07 pm
Posts: 22
okay this fixed it;
Code:
try_files $uri $uri/ /index.php?q=$uri&$args;


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group