php - Magento inner pages 404 Not Found but homepage getting with nginx server -


this host file:

server {   root     /path/to/root/domain/html;   index    index.php;   server_name servername.de;   location / {     index index.html index.php;     try_files $uri $uri/ @handler;     expires 30d;   }   location ^~ /(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ { internal; }   location /var/export/ { internal; }   location /. { return 404; }   location @handler { rewrite / /index.php; }   location ~* .php/ { rewrite ^(.*.php)/ $1 last; }   location ~* .php$ {     if (!-e $request_filename) { rewrite / /index.php last; }     expires off;     fastcgi_pass 127.0.0.1:9000;     fastcgi_param script_filename $document_root$fastcgi_script_name;     fastcgi_param mage_run_type store;     include fastcgi_params;  } } 

i have changed "use web server rewrites" "yes" magento admin panel make urls seo friendly(without index.php). , have cleared magento cache admin panel after restarting nginx. can me find out nginx configured correctly or why getting error.

you may try configuration:

server {     root     /path/to/root/domain/html;     index    index.php;     server_name servername.de;      location / {         index index.html index.php;         try_files $uri $uri/ @handler;         expires 30d;     }     location @handler { rewrite / /index.php; }     location ~* .php/ { rewrite ^(.*.php)/ $1 last; }     location ~* .php$ {         if (!-e $request_filename) { rewrite / /index.php last; }           expires off;          try_files $uri =404;         fastcgi_pass 127.0.0.1:9000;         fastcgi_split_path_info ^(.+\.php)(/.+)$;         include fastcgi_params;         fastcgi_param path_info $fastcgi_path_info;         fastcgi_index index.php;         fastcgi_param script_filename $document_root$fastcgi_script_name;          fastcgi_param  mage_run_code default;          fastcgi_param  mage_run_type store;     }      location ^~ /app/                { deny all; }     location ^~ /includes/           { deny all; }     location ^~ /lib/                { deny all; }     location ^~ /media/downloadable/ { deny all; }     location ^~ /pkginfo/            { deny all; }     location ^~ /report/config.xml   { deny all; }     location ^~ /var/                { deny all; }      location @handler {         rewrite / /index.php;     }      location ~ /\. {        deny all;        access_log off;        log_not_found off;     }     location = /favicon.ico {        log_not_found off;        access_log off;     }     location = /robots.txt {        allow all;        log_not_found off;        access_log off;     } } 

also, , related issues, may check official magento guides: https://www.magentocommerce.com/wiki/1_-_installation_and_configuration/configuring_nginx_for_magento


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -