Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a file 'result.txt' in my documentroot, now when I access:


It's accessing this instead:


What could have I incorrectly misconfigured in my apache config?

EDIT: My rewrite rules are as follow:

<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
<IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]
share|improve this question
Post your rewrite rules. –  EEAA Jun 16 '12 at 4:40
@ErikA updated the post. –  Pineapple Under the Sea Jun 16 '12 at 4:42
Does http://localhost/result.txt/first exist? –  John Gardeniers Jun 16 '12 at 11:37
@John it doesn't. only result.txt –  Pineapple Under the Sea Jun 16 '12 at 21:18
@Legit Can you clarify what you mean when you say "accessing this instead"? Does the URL in the browser change to have /result.txt/? Or is it showing up in a log somewhere? –  Shane Madden Jun 17 '12 at 5:13

1 Answer 1

Where did he get ".txt"? Not from the rewrite rules as I see.

Search for "txt" string in your apache config files (entirely) and disable rewrite rules.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.