Alweer 2 dagen aan het proberen, maar op de een of andere manier krijg ik het niet voor elkaar.
Wat wil ik en werkt:
http://www.mijndomein.nl/contact -> redirect naar contact.php
http://www.mijndomein.nl/contact.php/12 -> werkt
http://www.mijndomein.nl/contact/12 -> werkt niet
In de .vhost file:
Wie weet raad?
Wat wil ik en werkt:
http://www.mijndomein.nl/contact -> redirect naar contact.php
http://www.mijndomein.nl/contact.php/12 -> werkt
http://www.mijndomein.nl/contact/12 -> werkt niet
In de .vhost file:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| if (!-e $REQUEST_FILENAME) { rewrite ^/(.+)$ /$1.php last; break; } location ~* \.php$ { try_files /f5ae9aa8750b4632b2696b4dff5b5296.htm @php; } location @php { #ModSecurityEnabled On; #ModSecurityConfig modsecurity.conf; fastcgi_split_path_info ^(.+?\.php)(/.*)$; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/lib/php5-fpm/web13.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } |
Wie weet raad?