MajAfy
MajAfy

Reputation: 3097

URL with mod_rewrite download an empty file

I use mod_rewrite in my project, this is my .htaccess :

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . modules.php [L]

erveything is ok, for example when I enter this url everything is ok:

http://localhost/myproject/profile/zCdx/edit/_detail

but when I enter this URL the browser will download an empty file:

http://localhost/myproject/profile/zCdx/edit/_detail/edit/5

the request will not route to my module.php and my php file will not run !

What should I do?

Upvotes: 0

Views: 349

Answers (1)

MajAfy
MajAfy

Reputation: 3097

I restarted the Apache and the problem solved !

Upvotes: 1

Related Questions