|
|||
|
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. |
|
|||
|
.htaccess should look like this:
Code:
RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php 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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|