Answer the question
In order to leave comments, you need to log in
How to implement CNC?
Can you please tell me how to implement CNC on self-written CMS? The idea is that pages are always opened via index.php via a GET request, for example: index.php?action=pages&category=animals&article=123.
I want to implement the following scheme: Hide index.php from SEF System GET variables "hardcode", eg. pages, category And dynamic, such as the title of the article, to be written in the article itself and taken from there (with an understanding of the "where" the trouble comes from - I don't understand how .htaccess will take my "custom" link value from the article), the result: mysite.com/pages/ category/animals/my-custom-sef-article-name
Can't find an example. Help.
PS: I saw something similar in Joomla a long time ago
Answer the question
In order to leave comments, you need to log in
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ /index.php?route=$1 [L]
www.phpinfo.su/articles/practice/chpu_na_php.html
Cool article, universal approach without mod_rewrite
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question