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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2008, 10:22 AM
Junior Member
 
Join Date: May 2008
Posts: 3
Default .htaccess configuration for index.php bootstrap file

So I have the index.php in blog/ directory and in the same directory I have the images/ directory.

My .htaccess file is configured following way:

RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php

How do I write this so that when I can write URL blog/images/myimage.jpg

Currently if I enter above URL the image return is faulty because essentially it goes through the index.php file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-14-2008, 02:13 PM
Junior Member
 
Join Date: Mar 2008
Posts: 26
Default

.htaccess should look like this:

Code:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
make sure that mod_rewrite is enabled (do the urls like http://localhost/app/controller/action work?)

sometimes .htacces seems to be ok but it has .txt extension (.htaccess.txt)

if that doesn't work, try creating new .htaccess in images directory
Code:
RewriteEngine off
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 08:16 AM.