L
L
lemonlimelike2017-06-13 21:20:54
PHP
lemonlimelike, 2017-06-13 21:20:54

Why doesn't CNC .htaccess work?

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

This one works, but this one doesn't. RewriteRule ^page2/([0-9]+)/? page2.php?id=$1 [L]
Why? site url mysite.ru/page1/page2.php?id=24

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ozornick, 2017-06-13
@lemonlimelike

Use %{REQUEST_FILENAME} !\.php$

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question