像这样显示网址:localhost/test/view/admin/process.php?action=dashboard
我想在下面显示我的 URL:localhost/test/general/dashboard/
测试是根目录, 常规就像模块名称和 仪表板是页面名称
试试这个:
RewriteEngine on
RewriteRule ^/general/([a-zA-Z0-9_-]+)$ /view/admin/process.php?action=$1 [L]
您的问题已被无数次回答,在询问之前用谷歌搜索。
RewriteRule localhost/test/general/(.*(/localhost/test/view/admin/process.php?action=$1 [L]
错误的网址格式