Rewrite rule for webtemplate system
Hi,
Now I'm developing web template system so I want to develop at one folder to ease for maintaining.
I want user visit
http://128.199.192.85/~a123
is
http://128.199.192.85/template/?param=a123
if user go deeper like
http://128.199.192.85/~a123/office
is
http://128.199.192.85/template/office/?param=a123
and deeper
http://128.199.192.85/~a123/office/login.php
is
http://128.199.192.85/template/office/login.php?param=a123
I try many rewrite rules but does work, this one should work but failed again
RewriteEngine On
RewriteRule ^/~([^/]+)(.*) /template$2?param=$1 [PT,QSA]
please advice