.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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -