在windows服务器上设置301、伪静态(wordpress)_PHP教程

WBOY
Libérer: 2016-07-20 11:15:12
original
759 Les gens l'ont consulté

新建一个httpd.ini文件,插入代码:

<span [ISAPI_Rewrite]
RewriteCond Host</span>: ^wuchao\.<span cc$
RewriteRule (</span>.*) http\:<span //</span><span www\.wuchao\.cc$1 [R,I,L]</span>

<span #</span><span  3600 = 1 hour</span>
CacheClockRate 3600<span 
RepeatLimit </span>32
<span #</span><span  解决中文tag问题 </span>
RewriteRule /tag/(.*) /index\.php\?tag=$1
<span #</span><span  sitemapxml</span>
RewriteRule /sitemap.xml /sitemap.<span xml [L]
RewriteRule </span>/favicon.ico /favicon.<span ico [L]
</span><span #</span><span  For file-based wordpress content (i.e. theme), admin, etc. </span>
RewriteRule /wp-(.*) /wp-$1<span  [L]
</span><span #</span><span  For normal wordpress content, via index.php</span>
RewriteRule ^/$ /index.<span php [L]
RewriteRule </span>/(.*) /index.php/$1<span  [L]
[ISAPI_Rewrite]</span>
Copier après la connexion

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/440227.htmlTechArticle新建一个httpd.ini文件,插入代码: : ^wuchao\. .*) http\: CacheClockRate 3600 32 RewriteRule /tag/(.*) /index\.php\?tag=$1 RewriteRule /sitemap.xml /sitemap. /favicon.ic...
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!