• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Plesk php-fpm and Wordpress permalinks

Ryan_Smith

New Pleskian
I've searched and tried every solution to this I could find. When Plesk 12.1 is configured to process php by nginx, I just can't get Wordpress permalinks to work. If I switch permalinks to default the pages will appear, but if I use something like day and date for the permalinks I get a Nginx 404 error. Of course if I'm just using Apache and it can read the .htaccess file everything works fine. I think part of the reason the solutions I find won't work is my main site is static with the wordpress blog in the /blog/ subdirectory. What would I add in Plesk to get permalinks to work correctly with wordpress in a /blog subdirectory. I'd also like to get WP Super cache working as well if possible. Thanks for the help.
 
Well I'm currently using...
Code:
# Wordpress permalinks
if (!-e $request_filename) {
  rewrite ^(.*)$ /index.php?q=$1 last;
  break;
}

In Additional nginx directives. But my site is installed in "/" rather than "/blog".

If you already have Apache rewrite rules you can try the .htaccess to nginx converter in...
Plesk -> Extensions -> Extension Catalog


Maybe it'll help
Kind regards

Lloyd
 
Back
Top