网页资讯贴吧知道视频音乐图片地图文库
进入贴吧全吧搜索吧内搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
04月13日漏签0天
wordpress吧 关注:49,256贴子:307,269
  • 看贴

  • 图片

  • 精品

  • 视频

  • 游戏

  • 6回复贴,共1页
<<返回wordpress吧
>0< 加载中...

index.php/怎么都去不掉链接中的这个,大神看看

  • 只看楼主
  • 收藏

  • 回复
  • 蓝霖风
  • 正式会员
    5
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
以前用的方法用了,不管用win2003 主机的 之前都是用的这个将以下代码添加到httpd.ini文件中就可以了[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /wp-(.*) /wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]


  • 西瓜皮皮
  • 知名人士
    11
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
看你是linux的还是win的,linux设置伪静态规则就好.
win比较麻烦


  • 别和哥耍牛氓
  • 核心会员
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
这个文件用在discuz论坛上还管用


  • 别和哥耍牛氓
  • 核心会员
    6
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
这个文件 .htaccess 我的博客也是win主机 wp**流:177312250


  • 贴吧用户_7EayVKR
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
.htaccess文件最下方加入以下代码:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /


# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]


# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
原文出处:https://docs.expressionengine.com/latest/urls/remove_index.php.html
请关注 http://www.heyin-shiliu.com,上线前也被这个问题困扰多久,觉得好买几箱正宗的河阴软籽石榴


  • 贴吧用户_7EayVKR
  • 初级粉丝
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
也被这个问题困扰多久
.htaccess文件最下方加入以下代码:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /


# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]


# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>


登录百度帐号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 6回复贴,共1页
<<返回wordpress吧
分享到:
©2020 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示