Rewriterule Problem (HTACCESS)

Asked

Viewed 87 times

0

I have the following HTACCESS code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^customer/$ index.php [L,NC]
</IfModule>

(I cleaned the rest of the code to simplify.)

In the folder that HTACCESS is in (not at the root), you have a file Customer.php

When I’m going to test, instead of "play" to index php., he "plays" for Customer.php

If I change the code to, for example:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^customers/$ index.php [L,NC]
</IfModule>

or

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^qqercoisa/$ index.php [L,NC]
</IfModule>

He runs with success.

Could someone help me?

  • Got a little confused, what do you want to do?

  • what you don’t understand, Rafael?

  • As I said in the code, I simplified/cleaned properly so as not to confuse. I am using Rewriterule for friendly URL... but the purpose/doubt is not the problem but the error generated (and explained above).

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.