[提问]
GDwindows主机下安装joomla能实现静态或伪静态不?
|
|
RT
GD windows主机下安装joomla能实现静态或伪静态不?
有谁试过成功?
说明下过程呢 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-1-29 10:31:52
|
显示全部楼层
|
joomla 的伪静态只有在linux空间下才可以 |
|
|
|
|
|
|
|
|
|
|
omg2008
发表于 2010-1-29 16:36:31
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-1-29 16:42:57
|
显示全部楼层
|
joomla 本来就是php程序应该运行在linux空间的 |
|
|
|
|
|
|
|
|
|
|
glu123
发表于 2010-9-13 20:22:11
|
显示全部楼层
Joomla可以在godaddy的windows主机下实现伪静态.
因为目前godaddy都已经是IIS7了, 支持url重定向.
实现很简单.
1. joomla后台全局设置里面开启
搜索引擎友好链接
给 URL 添加后缀
2. 上传下面的web.config至 joomla根目录. 这个web .config记得另存为UTF8格式
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Common Exploit Blocking" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAny">
<add input="{QUERY_STRING}" pattern="mosConfig_[a-zA-Z_]{1,21}(=|\%3D)" />
<add input="{QUERY_STRING}" pattern="base64_encode.*\(.*\)" />
<add input="{QUERY_STRING}" pattern="(\<|%3C).*script.*(\>|%3E)" />
<add input="{QUERY_STRING}" pattern="GLOBALS(=|\[|\%[0-9A-Z]{0,2})" />
<add input="{QUERY_STRING}" pattern="_REQUEST(=|\[|\%[0-9A-Z]{0,2})" />
</conditions>
<action type="Redirect" url="index.php" appendQueryString="false" redirectType="SeeOther" />
</rule>
<rule name="Joomla Search Rule" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^/search.php" ignoreCase="true" />
</conditions>
<action type="Rewrite" url="/index.php?option=com_content&view=article&id=4" />
</rule>
<rule name="Joomla Main Rewrite Rule" stopProcessing="true">
<match url="(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{URL}" pattern="(/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$" />
</conditions>
<action type="Rewrite" url="index.php/" />
</rule>
</rules>
</rewrite>
<caching>
<profiles>
<add extension=".php" policy="DisableCache" kernelCachePolicy="DisableCache" />
</profiles>
</caching>
</system.webServer>
</configuration>
刷新网页即可.
[ 本帖最后由 glu123 于 2010-9-13 08:26 PM 编辑 ] |
|
|
|
|
|
|
|
|