Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-06-2008, 01:58 PM
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default Is .htaccess required

I am just getting started with Zend. From reading the introduction to Zend_Controller, it seems like a .htaccess file is required, but my web host does not allow them. I know that .htaccess files are optional with some other MVC frameworks, if you don't mind a URL like http://www.mysite.com/index.php/modu...troller/action. Will that also work with Zend?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-06-2008, 03:56 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 112
Default

To my knowledge, no. However, I wouldn't use it without pretty URLs, but that's just me.

Do you have any way to modify the apache config? Maybe there is another conf file they do let you edit. The rules in .htaccess can be run anywhere in the site's config, including the <VirtualHost> block
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-06-2008, 06:33 PM
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

It sounds like you have a cheaper hosting package that isn't really catered to developers. I would recommend upgrading your account.

Also, it is possible to use certain components without bootstrapping/MVC set up on your web site, but what fun is that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-09-2008, 12:09 AM
Junior Member
 
Join Date: Mar 2008
Posts: 6
Default

Quote:
Originally Posted by sawatdee View Post
I am just getting started with Zend. From reading the introduction to Zend_Controller, it seems like a .htaccess file is required, but my web host does not allow them. I know that .htaccess files are optional with some other MVC frameworks, if you don't mind a URL like http://www.mysite.com/index.php/modu...troller/action. Will that also work with Zend?
Any ideas if you're running IIS or Apache?

You can run ZF correctly using the URL scheme that you mention above on both if they're configured correctly.

If you can't use .htaccess files then I guess you can't edit a copy of http.conf/vhost.conf local to your user account either? (as you can setup the Rewrite rule in there)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:57 AM.