Forum Moderators: phranque
I want to accomplish two things:
1) create a rule so that when people go to http://www.example.com/foo/ it reads from http://www.example.com/foo/bar without showing "bar" in the address line.
2) create a rule that when people go to http://www.example.com/foo/blog/ it reads from http://www.example.com/foo/blog and doesn't try to go to http://www.example.com/foo/bar/blog.
Does that make sense? I'm even confusing myself.
--so very lost...
Also doesn't match the description you posted above very well.
This should be closer to what you described:
RewriteEngine on
#
# Internally rewrite requests for "/foo/<anything>"
# except "/foo/blog" to "/foo/bar/<anything>"
RewriteCond $1 !^foo/blog
RewriteRule ^foo/(.*)$ /foo/bar/$1 [L]