S
S
Sergey2014-06-17 22:45:40
PHP
Sergey, 2014-06-17 22:45:40

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

3 answer(s)
A
Andrey Burov, 2016-02-03
@BuriK666

Look at the error itself $connect->error
Yes, and not the fact that it was possible to connect to the database.

A
Alexander Pavlenko, 2016-02-03
@RichyNix

Either in the connection to the database, or in this place:
remove such '' quotes and it should work

S
Sergey Nikolaevich, 2014-06-18
@Playmore

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question