New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Permalinks for Wordpress using Minstall and Nginx
I have minstall installed with Nginx as webserver, it´s include several virtualhosts in the /home/user/http/hosts directory.
I want to have custom permalinks on my Wordpress site. But i can´t get it to work. The directories sites-enabled and sites-available doesn´t exists as default.
Here is my nginx.conf file: http://pastebin.com/rCvG7ix6
Comments
any files on
?
You can try changing the vhost you want to use for WordPress to this which is for multisite or you can follow the guidelines from Codex
@arieonline
in etc/nginx/hosts.d
i found a .conf file there named: johan-domain.se.conf
that´s look like this: http://pastebin.com/CNmWMv5x
try inserting below two lines before the last three lines and then restart nginx to see if it works...
try_files $uri $uri/ /index.php;
}
let us know the result.
@vanarp that´s worked! thanks!
But now i want to delete the /index.php/ before the permalink how do i do that:
like this: /index.php/about
i want this instead: /about
Just remove the /index.php/%post-name%/ or whatever part from the permalink in the WordPress admin. And then rewrite it as just the /%post-name%/.
@johanc add this in functions.php inside your theme or create a plugin
That is some new tip to me. I think the easiest way is what @wdq mentioned above.
@wdq
Thanks it´s worked!