mod rewrite - Beginner mod_rewrite question -



mod rewrite - Beginner mod_rewrite question -

how rewrite in .htaccess:

url.com/name url.com/view.php?=name

i've tried couple of variations think might putting slash in wrong place. suggestions?

rewriteengine on rewriterule ^(\w+)$ /view.php?somevar=$1 [l]

you have set name value of variable.

this illustration allows name word.. if want specific... replace \w+ whatever specific thing want.

mod-rewrite

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -