Bonjour tout le monde,
J'essaie de programmer une application en local, avec zend studio(9.04) et wamp server.
J'ai un problème de redirection vers la vue (public)![:cry:](https://www.developpez.net/forums/images/smilies/icon_cry.gif)
J'ai acitivé le module rewrite,
J'ai ajouté 127.0.0.1 tuto2.localhost dans hots (système).
J'ai crée un serveur virtuel dans httpd-vhosts
NameVirtualHost tuto2.localhost:80
<VirtualHost tuto2.localhost:80>
DocumentRoot "C:/wamp/www/tuto2/public"
ServerName tuto2.localhost
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "C:/wamp/www/tuto2/public">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
le problème est que ça me redirige juste vers le localhost est non pas vers la vue par défaut (index.phtml) ![:aie:](https://www.developpez.net/forums/images/smilies/aie.gif)
![:aie:](https://www.developpez.net/forums/images/smilies/aie.gif)
![:aie:](https://www.developpez.net/forums/images/smilies/aie.gif)
le fichier .htacces contien:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Quelqu'un pourra t-il m'aider a regler ce problème? merci par avance
Partager