搜外6系統(tǒng),自有空間或軟件版?zhèn)戊o態(tài)文件合集

1461次閱讀

使用場(chǎng)景:

主要應(yīng)用于自有空間或軟件版服務(wù)器配置偽靜態(tài)規(guī)則。


一、IIS6:

#

# httpd.ini

[ISAPI_Rewrite]

# 3600 = 1 Hour

CacheClockRate 3600

RepeatLimit 32

RewriteRule /(.*) /index.php [L]


二、IIS7+:

<?xml version="1.0"encoding="UTF-8"?>

<configuration>

<system.webServer>

  <rewrite>

<rules>

<rule name="wordpress" patternSyntax="Wildcard">

<match url="*" />

<conditions>

<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

</conditions>

<action type="Rewrite" url="index.php" />

</rule>

</rules>

  </rewrite>

</system.webServer>

</configuration>


三、Apache:

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>


四、Nginx:

##

# 將以下內(nèi)容拷貝到相應(yīng)的配置下面,具體用法和服務(wù)器配置有關(guān),可搜索了解


location / {

try_files $uri $uri/ /index.php;

}

if (!-f $request_filename){

rewrite (.*) /index.php;

}


如配置過(guò)程中有問(wèn)題,可以聯(lián)系客服人員協(xié)助處理。

本文由夫唯團(tuán)隊(duì)編輯,如發(fā)現(xiàn)錯(cuò)誤,歡迎通過(guò)客服微信反饋。

夫唯于2024年12月停止百度SEO研究和培訓(xùn)。道別信: 夫唯:再見(jiàn)了百度SEO!

2025年1月正式啟動(dòng)Google SEO培訓(xùn)課程,一千零一夜帶領(lǐng)大家一起出海。

感興趣的同學(xué),請(qǐng)?zhí)砑诱猩头∧⑿牛簊eowhy2021。 微信掃碼添加客服人員

我們的目標(biāo):讓大家獨(dú)立站出海不再“望洋興嘆”。

国产综合亚洲欧洲区精品无码,欧美一级免费一区二区,精品一级片高清无码,亚洲成片在线无码看 www.sucaiwu.net
Processed in 0.619151 Second , 290 querys.