I am attempting to setup a 开发者_如何学Pythonmod_rewrite that will do the following
www.mysite.com/dir/ignoreMe
will map to
www.mysite.com/dir
however in the browser the url will still appear to be
www.mysite.com/dir/ignoreMe
if the url entered is simply
www.mysite.com/dir
the rewrite shouldn't do anything.
This way I can use the last/ second directory as if it was a GET query string
RewriteRule ^([^/]*)/([^/]+)$ /$1
精彩评论