Resolved: Nginx is not deteecting permalinks

paksociety

Verified User
Joined
Jul 11, 2013
Messages
89
I just replace apache with nginx but the permalink function is not working.

i check many solution but all are for debian etc.
Can anyone tell me that as per custom build 2 and centos 5 how i can enable wordpress permalinks to work back.

Help will be appreciated.

Regards


Just resolved this by this

i solved the problem just add this in include /usr/local/directadmin/data/users/admin/nginx.conf;

{
try_files $uri $uri/ /index.php?$uri&$args;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/nginx_limits.conf;
if (-f $request_filename)
{
fastcgi_pass unix:/usr/local/php55/sockets/admin.sock;
}

if (!-e $request_filename){
rewrite ^(.*)$ /index.php?url=$1 break;
}

}
on my every wordpress domain
 
Last edited:
Back
Top