Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.

Permalinks for Wordpress using Minstall and Nginx

johancjohanc Member
edited March 2013 in General

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

  • arieonlinearieonline Member
    edited March 2013

    any files on

    /etc/nginx/nginx.d/*.conf
    /etc/nginx/hosts.d/*.conf

    ?

  • h3llh3ll Member

    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

  • @johanc said: 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...

       location / {
    

    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

  • wdqwdq Member

    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%/.

  • h3llh3ll Member

    @johanc add this in functions.php inside your theme or create a plugin

    add_filter( 'got_rewrite', '__return_true' );
  • @h3ll said: @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!

Sign In or Register to comment.