A
A
AstonMartin2015-01-07 09:33:09
Apache HTTP Server
AstonMartin, 2015-01-07 09:33:09

How to cut "?" via htaccess?

Good day!
There is a simple question, but something does not work to solve it.
This is the url
http://mysite.ru/index.php/topic?122.0.html
Should I just replace it? in it on ,
http://mysite.ru/index.php/topic,122.0.html
In theory, a simple rule should work, but it does not.
RewriteRule ^(.*)\?(.*)$ /$1,$2
As soon as screened - does not help. Tried the same with replacing with "\%3F"
I'm testing on htaccess.madewithlove.be
Tell me , plz, how to replace it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2015-01-07
@IceJOKER

I think RewriteCond %{REQUEST_URI} will help here, it seems like you can't get to "?"

A
Arman, 2015-01-07
@Arik

not strong, but maybe something like this:

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)$ $1,%1?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question