ho un server ubutu 16.4 su cui ho installato apache2, mysql 5.7, php5.6 e prestashop. Ultimamente ho docuto attivare il servizio di webservice su Prestashop 1.6; le webservice sono attive e fuznionano in parte, tant'è che clicco sul seguente link
http://www.cimminob2b.com/webservice/di ... =customers
ottengo come risultato
<prestashop><customers><customer id="1" xlink:href="http://www.cimminob2b.com/api/customers ... prestashop>
ma se clicco su
http://www.cimminob2b.com/api/customers/1
ottengo un risultato di errore file not found.
Deduco che sia un problema di rewriteing degli indirizzi anche se ho il modulo rewrite installato sul php, l'ho verificato con phpinfo, e verificato anche dal prompt dei comandi che il modulo sia caricato.
Domande :
1) Come posso testare manualmente che il modulo rewrite funzioni
2) Come posso installare le CGI module for PHP
questo è il mio file .htaccess di presta dove ci sono le regole di rewrite
Codice: Seleziona tutto
Order deny,allow
Deny from all
Options +FollowSymLinks
RewriteEngine on
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule . - [E=HTTP_AUTHORIZATION:%1]
#Domain: http://www.cimminob2b.com
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]
RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">
Header add Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again