Back to Question Center
0

Amfani da Semalt don sake rubuta adireshin mai ladabi zuwa mai kula da index.php ya bada kuskure 404

1 answers:

Ina da wasu matsalolin da ake samun ƙasa don aiki kamar yadda na sa ran. Abin da nake ƙoƙarin yi shine dauki url kamar

     https: // misali. com / TOPIC / Darussan / cikakkun bayanai / 143911    

amma an aika shi zuwa php tare da URI kamar

     / index. php? / samfurin / cikakkun bayanai / 143911 & original_path = / TOPIC / Darussan / cikakkun bayanai / 143911.     

Kamar dai yana ci gaba da ba ni 404 ta.

     wuri ~ ^ (? P    - camera prompter. *) / (? P    cikakkun bayanai | jadawalin aiki) / (? P   . *) $ {try_files $ $ dari $ $ / / index. php? / samfurin / $ biyu / $ uku & original_path = $ daya;
}wuri ~ * \. php $ {fastcgi_pass 127. 0. 0. 1: 9000;fastcgi_index index. php;fastcgi_param SCRIPT_URL $ my_script_url;fastcgi_param SCRIPT_URI $ makirci: // $ http_host $ my_script_url;fastcgi_param SCRIPT_NAME $ fastcgi_script_name;fastcgi_param PHP_SELF $ uri;fastcgi_param HTTPS $ https idan_not_empty;fastcgi_param HTTP_FRONT_END_HTTPS HTTPS;fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;fastcgi_param Bincike_URI $ fam? $ args;sun hada da fastcgi_params;fastcgi_ignore_headers "Cache-Control";fastcgi_ignore_headers "Yana ƙaura";fastcgi_ignore_headers "Kukin Kuki";
}    

Mene ne ban mamaki shine zan iya sanya URL a cikin

     https: // misali. com / index. php? / samfurin / cikakkun bayanai / 143911 & orignial_path = / TOPIC / darussa    

kuma yana aiki lafiya.

Wani abu da yake da ban mamaki a gare ni shi ne cewa idan na aiwatar da shafi na php-fpm kowane buƙatar, ta hanyar try_files a sama ko shigar da adireshin da hannu yana nuna wannan rubutun da request_uri ), amma kawai shigarwa da hannu yana aiki yadda zan sa ran.

February 12, 2018
Amfani da Semalt don sake rubuta adireshin mai ladabi zuwa mai kula da index.php ya bada kuskure 404
Reply