mod_rewrite syntax
-
Hi,
I’m trying to figure out the mod_rewrite syntax. I don’t want to do anything complex at all. I’m just looking to make a static rule that says:
www.example.com/foo
should go to some dynamic like:
www.example.com/?pageid=4
I can accomplish this with a simple
Redirect
statement, but I want the url to remain /foo in the address bar, not show the static page.I’ve looked at the apache documentation and couldn’t quite pin down the syntax for something so simple. Could anyone lend a hand with an example? I’d appreciate it.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘mod_rewrite syntax’ is closed to new replies.