.htaccess - show php file like a directory with htaccess -


hi want when user write www.test.com/6
in behind go http://www.test.com/index.php?id=6 not redirection mod_rewrite

i internal server error

options +followsymlinks rewriteengine on rewriterule ([0-9]*)$ /index.php?id=$1 [l,nc]

i've written similar mod_rewrite line 1 of own projects. regex use polishing, works, here anyway:

rewriterule ^([0-9]+)(/)?$ /path/to/file.php?id=$1 [qsa] 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -