سلام
نه اسکریپت اختصاصی نیست
با این روش هم حل نشد ولی یک index.html با محتوای همان index.php هم درست کردم مشکل صفحه اصلی بدون index.php حل شد ولی الان آدرس سایت با index.html سفید میاد !
نمیدانم چرا هر بار یک جای کار میلنکه ؟
پ.ن.
دوستان این راهنما را پیدا کردم اگر کسی میتونه راهنمایی کنه خواهشا توضیح بدهکد:If you're using NGINX as your webserver, use the rewrite rules below instead of .htaccess. These will need adding to /etc/nginx/sites-available/default or wherever this file is located on your nginx install. ####################################################################### # START NGINX RULES ####################################################################### # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; } } location / { if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; } } location /files/ { internal; } # these locations would be hidden by .htaccess normally location /core/logs/ { deny all; } ####################################################################### # END NGINX RULES ####################################################################### ####################################################################### # Full /etc/nginx/sites-available/default file example below: ####################################################################### server { listen 80; server_name localhost; # change this for your server root /usr/share/nginx/html; index index.php; client_max_body_size 5G; # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; } fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location / { if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; } } location /files/ { internal; } # these locations would be hidden by .htaccess normally location /core/logs/ { deny all; } location ~* "/\.(htaccess|htpasswd)$" { deny all; return 404; } }کد:







پاسخ با نقل قول