Answer the question
In order to leave comments, you need to log in
Problems with mod rewrite in .htaccess, how to remove question mark from url?
In general, there was originally a url of the form:
site.com/fr/index.php?category/ololo Sketched
.htaccess, became:
site.com/fr/?category/ololo
How to remove the question before the category?
Here is the .htaccess code:
pastebin.com/mzFn9JMZ
Already broke my head.
Answer the question
In order to leave comments, you need to log in
Look at the error itself $connect->error
Yes, and not the fact that it was possible to connect to the database.
Either in the connection to the database, or in this place:
remove such '' quotes and it should work
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question