# Virual host mapping: Domain = code.huypv.net - Directory = E:\www\code.huypv.net
# File E:\www\code.huypv.net\route\.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)\.html$ /route/index.php?rtp=$1 [L]
RewriteBase /route/
RewriteRule ^(.*)\.html$ index.php?rtp=$1&html=yes [L,QSA]
# L - Last (rule), QSA - Query String Append
# Visit: code.huypv.net/route/private.html?secret_key=zz723vv
# Same as: code.huypv.net/route/index.php?rtp=private&html=yes&secret_key=zz723vv
Title:
Apache - Rewrite .htaccess with RewriteBase
Description:
# Virual host mapping: Domain = code.huypv.net - Directory = E:\www\code.huypv.net # File E:\www\code.huypv.net\route\.htaccess RewriteEng...
...
Rating:
4