Welcome Guest, Not a member yet? Register   Sign In
htaccess rewrite url and remove question mark
#11

[eluser]bretticus[/eluser]
Okay, that makes sense for the HTTPS rule. Did you try my suggestions? Did you escape the question mark?

You might want to just use

Quote:RewriteCond %{HTTP_HOST} !=""
RewriteRule ^index.php/\?(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
and

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

In that order and leave the other junk out until you get it working.
#12

[eluser]Omega Priyankara[/eluser]
I am having the same problem, tried with

RewriteRule ^/oldurl.html$ http://www.maysite.com/news/view/newurl.html [R=301]

Didn't work.
#13

[eluser]stuckinphp[/eluser]
Had similar issue, turns out I mistakenly set up the config with enable query strings turned on.

Old thread I know but if google is going to give me this as the top result for "codeignigter questionmark" I assume a few more will find it also.
#14

[eluser]Unknown[/eluser]
hi guys,
I have the same problem here. I have urls like: www.domain.com/computers/repair.html?page=bla bla bla
The part behind "page=" is dynamic. Now what i want is to auto redirect www.domain.com/computers/repair.html?page=bla bla bla to www.domain.com/computers/repair.html

So remove the ?page=bla... How can i do this in htaccess?

Thnx in advance




Theme © iAndrew 2016 - Forum software by © MyBB