Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14348

Redirecting with apache mod_rewrite

$
0
0
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"
but displays the "404 Page Not Found" page from CodeIgniter (not the Apache default one).

This works:
Code:
RewriteRule "^about$" "/foo/index.php/pages/about" [R]
But it changes url in the browser, which is not what I needed.

I think the problem might be in the query string part, but can't figure out a way to solve it yet.

Viewing all articles
Browse latest Browse all 14348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>