Answer the question
In order to leave comments, you need to log in
How to organize correct rewrite in .htaccess for Twig template?
Hello, I have Twig, I want to make dynamically filled pages of the site. The following thought occurred to me:
1 script.php: generating a list of products
2 script.php: generating a specific product
In htaccess I write:
RewriteRule ^продукты$ /pages/1скрипт.php [NC,L]
RewriteRule ^продукты/(.*)$ /pages/2скрипт.php?продукт=$1 [NC,L]
Uncaught SyntaxError: Unexpected token <
RewriteRule ^продукты/(.*)$ /pages/2скрипт.php?продукт=$1 [NC,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question