Answer the question
In order to leave comments, you need to log in
Problem with mod rewrite in .htaccess, "index.php?" How to fix it?
Before I could fix the first problem, the second one immediately appeared:
# Turn on URL rewriting
RewriteEngine On
# Rewrite all other URLs to index.php/URL
RewriteRule ^([a-zA-Z]+)\/([0-9] {1,2})\/?$ /index.php?c=$1&page=$2 [QSA]
RewriteRule ^([0-9]{1,2})\/?$ /index.php?page=$2 [QSA]
RewriteRule ^([a-zA-Z]+)\/?$ /index.php?c=$1 [QSA]
index.php is not placed before c=$1&page=$2 during redirect?
for example, I click on the URL home/1 and instead of the full-fledged index.php?c=home&page=1, only c=home&page=1 comes up
Answer the question
In order to leave comments, you need to log in
Everything came, it's just that, out of my stupidity, I made the paths to the included files relative, because of this they fell into the regular program, changed and did not connect
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question