编程语言
首页 > 编程语言> > apche重定向&端口转发&隐藏index.php.htaccess

apche重定向&端口转发&隐藏index.php.htaccess

作者:互联网

Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
#RewriteRule . index.php
RewriteRule login/(\d+)$ login.php?id=$1
RewriteRule index/home/order/id/(\d+).html$ member/index.php?id=$1
RewriteRule index/home/pay/id/(\d+).html$ member/pay.php?id=$1
RewriteRule  index/home/rmb_record/id/(\d+).html$ member/rmbjl.php?id=$1
RewriteRule  index/home/login_record/id/(\d+).html$ member/log.php?id=$1
RewriteRule  index/home/ktfz/id/(\d+).html$ member/ktfz.php?id=$1

标签:index,RewriteRule,apche,member,htaccess,home,php,id
来源: https://blog.csdn.net/qq_22823581/article/details/89001443