Welcome Guest, Not a member yet? Register   Sign In
Redirect by .htaccess: questionmark in URL
#1

Hi everyone,

I have a line:

Code:
RedirectPermanent /old http://www.example.com/new

in my .htaccess file, followed by:

Code:
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]

I also tried it without the questionmark:

Code:
RewriteRule ^(.*)$ /index.php/$1 [L]

But this results in the error message: "No input file specified."

If I now call the URL http://www.example.com/new the addressbar of the browser shows: http://www.example.com/new?/old. But I only want it to show: http://www.example.com/new.

Is there any way to manage this? Codeigniter version is 2.0.
Reply


Messages In This Thread
Redirect by .htaccess: questionmark in URL - by myphi - 11-06-2014, 01:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB