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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -