Redirecting with apache mod_rewrite |
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. |
Welcome Guest, Not a member yet? Register Sign In |