Thanks this worked.....
Matthew Weier O'Phinney-3 wrote: > > -- neozf <[email protected]> wrote > (on Monday, 22 June 2009, 03:07 AM -0700): >> I am new to zend I have downloaded the community server with the >> framework >> ... I have created a new project for the quick start on my C drive >> >> c:\ZendProject\quickstart >> >> I have added the reference to the zend framework library folder to my >> winodws path >> >> >> in my httpd.conf I have added the following >> >> >> <Location /quick> >> Order deny,allow >> Allow from all >> </Location> >> >> Alias /quick "C:\ZendProject\quickstart\public" > > Create a vhost in your apache configuration pointing to the public > directory instead: > > NameVirtualHost *:80 > <VirtualHost *:80> > DocumentRoot "C:\ZendProject\quickstart\public" > ServerName quick.local > > <Directory "C:\ZendProject\quickstart\public"> > DirectoryIndex index.php > AllowOverride All > Order allow,deny > Allow from all > </Directory> > </VirtualHost> > > Then add the following entry to C:\WINDOWS\system32\drivers\etc\hosts : > > 127.0.0.1 quick.local > > Restart apache, and then browse to http://quick.local/ and you should > find that your "index.php" references go away. > > If they don't, make sure that your installed apache has mod_rewrite. > >> I then created a new action in the index controller just as a test >> >> public function showAction() >> { >> >> echo "Show"; >> } >> >> >> I have created a new view , under view->scripts->index and named it >> show.phtml >> >> >> My .htaccess in the public folder is the default one >> >> SetEnv APPLICATION_ENV development >> >> RewriteEngine On >> RewriteCond %{REQUEST_FILENAME} -s [OR] >> RewriteCond %{REQUEST_FILENAME} -l [OR] >> RewriteCond %{REQUEST_FILENAME} -d >> RewriteRule ^.*$ - [NC,L] >> RewriteRule ^.*$ index.php [NC,L] >> >> >> so when i do >> >> localhost/quick/index.php/index/show >> >> it works >> >> but any url without the index.php doesnt work >> >> This looks like an apache issue , but not sure how to solve it ... > > -- > Matthew Weier O'Phinney > Project Lead | [email protected] > Zend Framework | http://framework.zend.com/ > > -- View this message in context: http://www.nabble.com/Getting-rid-of-Index.php-in-urls-tp24144691p24147752.html Sent from the Zend Framework mailing list archive at Nabble.com.
