View Single Post
Old 7th January 2013, 17:50
Ovidiu Ovidiu is offline
Senior Member
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts

Originally Posted by falko View Post
I have this in my nginx Directives field:
       location / {
                try_files $uri $uri/ /index.php?$args;

       # Add trailing slash to */wp-admin requests.
       rewrite /wp-admin$ $scheme://$host$uri/ permanent;

       location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                expires max;
                log_not_found off;
Thanks Falko, that worked perfectly except for one minor annoyance:

if I visit my backend I mysite.tld/wp-admin/index.php the drop-down/hover menus in the backend menu don't work.
If I visit mysite.tld/wp-admin/ everything works perfectly. can we somehow strip the index.php from dashboard URLs?
Reply With Quote