Issue with accessing media folder files

I am really facing a strange issue, that is I can not access any file from media folder while I can access file from js folder which is at the same location like :

app/public/media

app/public/js

Media folder permission is set to 777 and I don`t have any .htaccess file in the project.

The virtual host config is as below

<Directory "/home/ashwani/public_html/www/myproject"> Options -Indexes FollowSymLinks Includes ExecCGI AllowOverride All #Require all granted Order deny,allow Allow from all </Directory> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/home/ashwani/public_html/www/myproject/public" ServerName local.myproject.com <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/css/(.*)$ /css/$1 [QSA,L] RewriteRule ^/js/(.*)$ /js/$1 [QSA,L] RewriteRule ^/img/(.*)$ /img/$1 [QSA,L] RewriteRule ^/fonts/(.*)$ /fonts/$1 [QSA,L] RewriteRule ^/media/(.*)$ /media/$1 [QSA,L] RewriteRule ^/(.*).html$ /$1.html [QSA,L] RewriteRule ^/(.*).css$ /$1.css [QSA,L] RewriteRule ^/(.*?)$ /index.php?_myproject=$1 [QSA,L] </IfModule> </VirtualHost>

I can`t understand what is wrong with this.

-------------Problems Reply------------

Try this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*?)$ /index.php?_myproject=$1 [QSA,L]
</IfModule>

I'm not sure if this will work as this is just a simplification of your endless list of rules that IMHO just try to serve real files.

Category:php Views:6 Time:2018-08-09

Related post

  • I have an issue with adding and deleting files in Windows Media Player. 2013-10-23

    Media player will not play the files selected but then goes on to play other files. When I delete files from media player and try to re-add them I get the message 'media player is wrongly installed'. Have tried reinstalling media player but it always

  • I have an issue with saving a music file to the Windows Media Player library. 2014-07-02

    When I download music from the internet it automatically saves the music in windows media player but I am having problems with 2 files that wont go into the library I have deleted them and redownloaded them even tried playing them they did play but d

  • BSOD on Startup along with error message : STOP: 0x00000116 and an issue with the atikmpag.sys file 2014-05-10

    On startup, after the windows logo appears, it fails to go any further and I end up with the message: "Attempt to reset display driver and recover from timeout failed" along with error message : STOP: 0x00000116 and an issue with the atikmpag.sys fil

  • Is there any way to access media Folder in iPhone , iPad 2010-06-10

    For my app, i need to access Media folder, Is it possible, if yes it would be great if someone can share one sample code --------------Solutions------------- With Following guide, you can access iPod media http://developer.apple.com/iphone/library/do

  • Access /data folder files in android 2011-03-16

    I have rooted my device and I have install busybox. Now I want to access /data folder files through my application.My application have super user permissions but still i am not able to access file Can any one know how to do this (with or without busy

  • I have an issue with accessing the BIOS after installing Windows Update. 2013-02-18

    Original title : Cannot access BIOS Since installing latest updates, I cannot access my BIOS and the startup is very slow. I'm running a Gateway, which has it's startup screen when the computer starts, normally lasts about 10 seconds, but now holds f

  • Excel 2013 issues with 97-2003 xls file 2013-10-15

    Hi, I work as an IT Technician and currently provide on site support for a Client of the company I work for. Currently the users here have a range of different versions of Office installed from 2003 to 2013 and there is no consistency but for the mos

  • I have an issue with accessing the Western Digital external hard drive on Windows 7. 2014-01-24

    Original title : wd 2tb problem I have WD 2TB external hard drive, Windows say 'can't access hard drive', 'format hard drive'. I have tried everything but no luck, I have changed the PCB, checked if disk is spinning, connected it as an internal hard

  • Issues with the marked up files on Reader app 2014-12-18

    Original Title: Microsoft's PDF Reader app doesn't read markup properly If I make marks in a pdf using the Reader app, it shows up properly when making the marks. However, if I close the file and reopen it, it looks like the marks are corrupted someh

  • Issue with Drupal "sites" folder 2009-03-08

    I have a Drupal install on the MediaTemple gs hosting plan. The site is up and working fine but I've had some issues with the "sites" folder. If I put themes in the "sites/default/themes" folder, they show up on the "Themes" folder but none of the ic

  • Issue with Global.asax.cs file and StyleCop rule SA1649 2011-10-17

    Currently I'm working on a project at work and we're looking at upgrading our StyleCop from version 4.3.3 to 4.5 During the fun of all that, we've come across rule SA1649 - "FileHeaderFileNameDocumentationMustMatchTypeName" which is all nice and that

  • issues with form/iframe based file upload in Opera 2011-10-26

    SOLUTION Refer to my answer below: issues with form/iframe based file upload in Opera I'm using the form/iframe technique to send files to the server whenever a browser does not support XMLHttpRequest upload (Opera). On a high level, here's the setup

  • Just started having a problem (issue) with windows media center It was working fine until today. Now it does not recognize TV tuner, 2012-03-20

    Just started having a problem (issue) with windows media center It was working fine until today. Now it does not recognize TV tuner. It says no tuner found. Only thing that as added/changed on the system was the Window Update last night. ------------

  • Facing issues with accessing www.e-grou.com website, Favicon background appears black on Internet Explorer 11 2013-11-28

    <Original title: Favicon background appears black> In Internet Explorer 11 the favicon background appears black. This problem do not exist in older IE version or in other browsers (like, FF, Safari, Chrome, ...). You can see what I am talking i

  • Issues with accessing file in homegroup with certain systems and user profiles. 2013-01-15

    Homegroup/sharing chaos? What is going on? I have a desktop pc (Medion) which has been running W7 Home Premium for a year; and a (Samsung) netbook which was running XP. As the netbook was becoming elderly I bought a new netbook (Asus) which had W7 St

  • I have an issue with accessing the files on the computer. 2014-09-18

    Original title : my new win8 laptop wont let me access my pictures, music, videos and document folders saying they dont exist???? please help!!!! when i use the libraries link to access these it says the folders doesn't exist???? i have managed to ac

  • I have an issue with accessing the files on the mapped drive. 2015-01-02

    Original title : Network access error I can't find answer too Other than a guest account I have turned off, my administrator account is the only account listed in the user account section in the control panel. I can access other computers on the netw

  • Not able to lauch Sticky Notes. Issue with accessing the file(Quit) 2012-11-08

    Whenever i try to open the sticky notes on my windows 7 it shows an error sayin"Not able to lauch Sticky Notes. Issue with accesing the file(Quit)" and it doesn't open. i experienced this problem when other application of my laptop too were showing p

  • Decoding issue with Windows Media Player and Windows Media Files 2014-10-27

    With my fresh copy of Windows Vista came a lovely Windows Media Player of the latest version (Notice the sarcasm already), here I tried to play videos and something complicated came up. It seems that using the Windows Media player, with no additional

  • Sound issues with Windows Media Player? 2013-11-24

    Original title: sony vaio windows 7 problem with windows media player 12 Please can u help when I try to play video's through windows media player 12 I'm only getting half of the sound , the music, and the back ground sound is fine but when someone s

  • Red ! Issue with Windows Media Player Mobile/Windows Media Player 12 2013-06-17

    I have been trying to make use of the preinstalled WMP on my Touch Pro2 for some time but I am continually running into problems. Using WMP12 on Win 7 I compiled my library and synced it to my storage card through the mobility center. Some playlists

  • Access 2007 problem with Access 2000 Database file 2012-04-10

    Hi. Newbie to Microsoft Access here so I apologize in advance. I have a user that has Access 2007 SP3 and is trying to open a .mdb file on the network. This file was supposedly created with Access 2000. The file opens fine and you have a "switchboard

  • Issues with Windows Media Player Library 2013-09-16

    Original title:Windows Media Player Library Windows Player does not end smoothly when playing files (music) it appears to be scratched and unstable. MS Fix it Centre reports issue with the players library but could not fix it.. My P C runs on Vista S

  • Sync issue with Windows media player 2013-10-25

    Hello, I am running windows 8, and am having an issue with a sony Walkman player. when I go to delete songs off the player, it says "Windows media player cannot delete a file from the device" and the sony support page says that you have to delete son

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.110 (s). 11 q(s)