Mobile app version of vmapp.org
Login or Join
Carla537

: “File does not exist” in Apache error log when mod_rewrite is using I am getting below error in server log, when re-writing the URLs. [Fri Jan 25 11:32:57 2013] [error] [client ***IP***]

@Carla537

Posted in: #Apache #ApacheLogFiles #Htaccess #ModRewrite

I am getting below error in server log, when re-writing the URLs.

[Fri Jan 25 11:32:57 2013] [error] [client ***IP***] File does not exist: /home/testserver/public_html/testing/flats-in-delhi-for-sale, referer: domain.in/testing/flats-in-delhi-for-sale/

I searched very where, but not found any solution.

My .htaccess config is given below:

Options +FollowSymLinks
Options All -Indexes

ErrorDocument 404 domain.in/testing/404.php
RewriteEngine On
#Category Link
RewriteRule ^([a-zA-Z]+)-in-([a-zA-Z]+)-([a-zA-Z-]+)/?$ view-category.php?type=&dis=&cat= [NC,L]
#Single Property Link
RewriteRule ^([a-zA-Z]+)-in-([a-zA-Z]+)-([a-zA-Z-]+)/([a-zA-Z0-9-]+)/?$ view-property.php?type=&district=&category=&title_alias= [NC,L]


I also found similar old dated question, but no answer ("File does not exist" in apache error log).

Thanks in advance for your help.

P.S.: My site is working fine even Apache log is showing the error.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Carla537

3 Comments

Sorted by latest first Latest Oldest Best

 

@Gretchen104

You may have used a , in some <img> tag. For example:

<img src="/testing/flats-in-delhi-for-sale,">
<script src="/testing/flats-in-delhi-for-sale,"></script>


Don't forget that the URL is very sensitive to any character.

10% popularity Vote Up Vote Down


 

@Fox8124981

I ran into a similar situation yesterday. My website was working fin, but there were errors in Apache's error log. The problem was caused by a mistake in my PHP files, not in my RewriteRule.

My PHP files contained the following fragment:

<script src="javascript/package-min-1367246122.js"></script>


The missing slash caused "file does not exist" errors in Apache's error log. This the correct fragment:

<script src="/javascript/package-min-1367246122.js"></script>

10% popularity Vote Up Vote Down


 

@Tiffany637

I advise you to check the paths in your configuration .htacess file. If the error (file doesn't exist is shown), then the script can't find the file mentioned above.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme