Redirect by .htaccess: questionmark in URL - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Redirect by .htaccess: questionmark in URL (/showthread.php?tid=158) |
Redirect by .htaccess: questionmark in URL - myphi - 11-06-2014 Hi everyone, I have a line: Code: RedirectPermanent /old http://www.example.com/new in my .htaccess file, followed by: Code: RewriteEngine on 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. RE: Redirect by .htaccess: questionmark in URL - Avenirer - 11-06-2014 Please try to modify Code: RewriteBase / ...with.. Quote:RewriteBase /new/ RE: Redirect by .htaccess: questionmark in URL - myphi - 11-06-2014 The "old" and "new" was only one example. In fact there are some more permanent Redirects in front of the Rewrite Engine part like: Code: RedirectPermanent /old1 http://www.example.com/new1 |