请教:linux下的.htaccess的二级目录伪静态规则怎么写(附根目录规则)
请教linux下的.htaccess的二级目录伪静态规则怎么写?以下是根目录规则:RewriteEngineonRewriteBase/RewriteRule^catal...
请教linux下的.htaccess的二级目录伪静态规则怎么写?
以下是根目录规则:
RewriteEngine on
RewriteBase /
RewriteRule ^catalog/(.*)_(.*).htm catalog\.php\?id=$1&pg=$2
RewriteRule ^catalog/(.*).htm catalog\.php\?id=$1
RewriteRule ^article/(.*).htm article\.php\?id=$1
RewriteRule ^tag/(.*) s\.php\?word=$1
RewriteRule ^tieba/list/(.*).htm catalog_tieba\.php\?id=$1
RewriteRule ^tieba/list/(.*)_(.*).htm catalog_tieba\.php\?id=$1&pn=$2
RewriteRule ^tieba/view/(.*).htm article_tieba\.php\?id=$1 展开
以下是根目录规则:
RewriteEngine on
RewriteBase /
RewriteRule ^catalog/(.*)_(.*).htm catalog\.php\?id=$1&pg=$2
RewriteRule ^catalog/(.*).htm catalog\.php\?id=$1
RewriteRule ^article/(.*).htm article\.php\?id=$1
RewriteRule ^tag/(.*) s\.php\?word=$1
RewriteRule ^tieba/list/(.*).htm catalog_tieba\.php\?id=$1
RewriteRule ^tieba/list/(.*)_(.*).htm catalog_tieba\.php\?id=$1&pn=$2
RewriteRule ^tieba/view/(.*).htm article_tieba\.php\?id=$1 展开
展开全部
RewriteEngine on
RewriteBase /link#如果您放在二缓目录下, 此处填写二级名称
RewriteRule ^catalog/(.*)_(.*).htm catalog\.php\?id=$1&pg=$2
RewriteRule ^catalog/(.*).htm catalog\.php\?id=$1
RewriteRule ^article/(.*).htm article\.php\?id=$1
RewriteRule ^tag/(.*) s\.php\?word=$1
RewriteRule ^tieba/list/(.*).htm catalog_tieba\.php\?id=$1
RewriteRule ^tieba/list/(.*)_(.*).htm catalog_tieba\.php\?id=$1&pn=$2
RewriteRule ^tieba/view/(.*).htm article_tieba\.php\?id=$1
RewriteBase /link#如果您放在二缓目录下, 此处填写二级名称
RewriteRule ^catalog/(.*)_(.*).htm catalog\.php\?id=$1&pg=$2
RewriteRule ^catalog/(.*).htm catalog\.php\?id=$1
RewriteRule ^article/(.*).htm article\.php\?id=$1
RewriteRule ^tag/(.*) s\.php\?word=$1
RewriteRule ^tieba/list/(.*).htm catalog_tieba\.php\?id=$1
RewriteRule ^tieba/list/(.*)_(.*).htm catalog_tieba\.php\?id=$1&pn=$2
RewriteRule ^tieba/view/(.*).htm article_tieba\.php\?id=$1
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,IP...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询