[wp-trac] [WordPress Trac] #7208: Problem with Nginx?

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 29 22:19:44 GMT 2008


#7208: Problem with Nginx?
-----------------------+----------------------------------------------------
 Reporter:  drhallows  |       Owner:  anonymous
     Type:  defect     |      Status:  new      
 Priority:  normal     |   Milestone:  2.6      
Component:  General    |     Version:           
 Severity:  normal     |    Keywords:           
-----------------------+----------------------------------------------------
 I found a little trouble with
 WordPress. If you use Nginx, the permalinks are not seo friendly. I
 try all kinds of redirections, but all have the same problem.

 For example
  Results for: http://mysite.com/?page_id=5

 Status : (302) Found
 Either http://mysite.com/?page_id=5 is NOT REDIRECTING to any
 URL or the redirect is NOT SEARCH ENGINE FRIENDLY.

 but when i was using apache, the redirect was 301 (seo friendly).

 I am using this kind of redirection in nginx.conf:

  if (!-e $request_filename) {
 rewrite ^.+?(/wp-.*) $1 last;
 rewrite ^.+?(/.*\.php)$ $1 last;
 rewrite ^ /index.php last;
 }

 I also try other kind of redirection, and are not working.

 I have visited a lot of blogs WordPress using Nginx, and all have the same
 problem. It is a problem with the redirection that we are using in Nginx?
 or is a problem with permalinks in WordPress?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7208>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list