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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2008, 04:52 PM
Junior Member
 
Join Date: Oct 2008
Posts: 2
Default How do you do this .htaccess RewriteEngine directly on Apache? [SOLVED]

Hi I'm trying to learn ZF by following this screencast by Hashimoto:
Zend Framework

He shows howto create a .htaccess file with this content. But what if I don't want to allow .htaccess files, since they slow down Apache servers a lot according to rumours that "they" say on the Internet.
Code:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css|html)$ index.php
Do I just put the same code directly in this config file on Linux to achieve the same effect like that .htaccess RewriteEngine code?
/etc/apache2/apache2.conf

Last edited by apprentice : 10-07-2008 at 07:56 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-07-2008, 12:34 AM
Member
 
Join Date: Jul 2008
Posts: 46
Default

Yes, you should be able to put the same thing into the VirtualHost container for the host hosting your app.

Or possibly in the global config if you're not using virtualhosts (I'm not sure on this, I always use virtualhosts)
__________________
Brenton Alker
Brisbane, Australia

http://blog.tekerson.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-07-2008, 07:56 PM
Junior Member
 
Join Date: Oct 2008
Posts: 2
Thumbs up

Thanks for the clarification.
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 02:32 PM.