# No nice Permalinks with Wordpress

**URL:** <https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141>\
**Category:** NGINX\
**Created:** [November 23, 2011, 5:31am UTC](https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141 "2011-11-23T05:31:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 23, 2011, 5:31am UTC](https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141/1 "2011-11-23T05:31:36Z")

</div>

Hello,

after days of testing i don’t find a way to use short permalinks with  
Wordpress, i can only configure URLS with /index.php/xxx in it, not sure  
why.

The rewrite-rules are there, but wordpress ignores them.

I tried  
try\_files $uri $uri/ /index.php?$args;  
and  
try\_files $uri $uri/ /index.php?q=$request\_uri;  
(both inside location / {}

If i try /xxx/ instead of /index.php/xxx/ i only see an “Nothing found  
for xxx” error from wordpress.

Is there any way to fix this? I found many faqs but i don’t find my  
problem ☹

Thanks

Posted at Nginx Forum:

> **[No nice Permalinks with Wordpress](https://forum.nginx.org/read.php?2,218771,218771#msg-218771)**
>
> Hello, after days of testing i don't find a way to use short permalinks with Wordpress, i can only configure URLS with /index.php/xxx in it, not sure why. The rewrite-rules are there, but wordpress ignores them. I tried try\_files $uri $uri/ /i

---

<div class="post-metadata">

**Author:** ![Salem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Salem](https://www.ruby-forum.com/u/Salem)\
**Post date:** [November 23, 2011, 6:08am UTC](https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141/2 "2011-11-23T06:08:40Z")

</div>

On Wed, Nov 23, 2011 at 11:31 AM, Salem [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hello,
> 
> after days of testing i don’t find a way to use short permalinks with  
> Wordpress, i can only configure URLS with /index.php/xxx in it, not sure  
> why.

Use “Custom Structure” and remove the index.php/ part.

For the try\_files, use this:

try\_files $uri $uri/ /index.php?q=$uri&$args;

–  
O\< ascii ribbon campaign - stop html mail - [www.asciiribbon.org](http://www.asciiribbon.org)

---

<div class="post-metadata">

**Author:** ![Salem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Salem](https://www.ruby-forum.com/u/Salem)\
**Post date:** [November 23, 2011, 2:19pm UTC](https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141/3 "2011-11-23T14:19:29Z")

</div>

> **[nginx Compatibility](https://wordpress.org/plugins/nginx-compatibility/)**
>
> The plugin makes WordPress more friendly to nginx.

You need this plugin, as WP disables permalinks when there is no  
Apache’s mod\_rewrite.

Posted at Nginx Forum:

> **[Re: No nice Permalinks with Wordpress](https://forum.nginx.org/read.php?2,218771,218817#msg-218817)**
>
> Hello, after days of testing i don't find a way to use short permalinks with Wordpress, i can only configure URLS with /index.php/xxx in it, not sure why. The rewrite-rules are there, but wordpress ignores them. I tried try\_files $uri $uri/ /i

---

<div class="post-metadata">

**Author:** ![Salem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8c91f0/32.png) [@Salem](https://www.ruby-forum.com/u/Salem)\
**Post date:** [November 23, 2011, 2:49pm UTC](https://www.ruby-forum.com/t/no-nice-permalinks-with-wordpress/214141/4 "2011-11-23T14:49:51Z")

</div>

On Wed, Nov 23, 2011 at 8:18 PM, Sylvia [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> [nginx Compatibility – WordPress plugin | WordPress.org](http://wordpress.org/extend/plugins/nginx-compatibility/)  
> You need this plugin, as WP disables permalinks when there is no  
> Apache’s mod\_rewrite.

It is not disabled, just not given as default choices. It’s still  
possible using custom structure and removing the index.php/ part.

–  
O\< ascii ribbon campaign - stop html mail - [www.asciiribbon.org](http://www.asciiribbon.org)
