S
S
Sergey Baharev2016-11-24 00:07:40
htaccess
Sergey Baharev, 2016-11-24 00:07:40

What's wrong with RewriteRule?

Made three rules

RewriteRule ^kross/new kross/new_kross.php [L] 
RewriteRule ^kross/list kross/kross_list.php [L] 
RewriteRule ^kross/(.*)?$ kross/select_kross.php?id=$1 [L]

everything is fine, except for the second rule: when I enter /kross/list, it throws me to the select_kross.php page and also select_kross.php in the id parameter

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2016-11-24
@SagePtr

What if we add a condition?
RewriteCond %{REQUEST_FILENAME} !-f

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question