Apache url rewrite problem

Posted by Ankit on Stack Overflow See other posts from Stack Overflow or by Ankit
Published on 2010-03-24T21:55:13Z Indexed on 2010/03/24 22:13 UTC
Read the original article Hit count: 254

Filed under:
|
|

requests -----> should be written to new url

/institute/dps -----> /institute.php?slug=dps
/institute/abc -----> /institute.php?slug=abc
/institute/123 -----> /institute.php?slug=123

I am using following rule in .htaccess
RewriteRule ^institute/(.*)$ /institute.php?slug=$1

However, it's not working. the page insitute.php get's execution, but the query string always comes empty.

Any suggestions?

© Stack Overflow or respective owner

Related posts about apache

Related posts about url-rewriting