Redirecting with apache mod_rewrite - 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: Redirecting with apache mod_rewrite (/showthread.php?tid=66349) |
Redirecting with apache mod_rewrite - Kenqr - 10-12-2016 How do I redirect http://hostname.com/about to http://hostname.com/foo/index.php/pages/about with apache mod_rewrite, without changing url in browser? I tried writing this: Code: RewriteRule "^about$" "/foo/index.php/pages/about" This works: Code: RewriteRule "^about$" "/foo/index.php/pages/about" [R] I think the problem might be in the query string part, but can't figure out a way to solve it yet. |