I want to convert every url which contains “+” to “=+”
for example that url:
http://www.bedavaemlaksitesi.com/mersinemlakrehberi210/index3.php?+
should be like this:
http://www.bedavaemlaksitesi.com/mersinemlakrehberi210/index3.php?=+
tried that and few other lines but doesn’t work so far, i’m guessing it causes a loop or something.
RewriteRule ^([^/\.]+)+([^/\.]+)?$ $1=+$2 [R]
I’m just gonna give you a literal answer for that specific example. Not sure if that will actually help you:
You cannot repleace each
+in the QS, as you do need a separate condition to match it first.Also about your original rule:
Escaping the dot in the charclass is redundant,
[^/.]suffices. And you need at least a separator between the two groups/to make sense. But you can’t match the query_string there, that’s handled separately from the current filepath.See alsos: ServerFault: Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? -and- HttpdWiki: Manipulating the Query String