本源码时开源版本,
安装方法:
1、上传源码到网站根目录解压出来
2、修改数据配置文件的数据库信息为你自己的数据库信息、/common
/config.php数据库配置。
3、导入数据库文件 压缩包、数据库文件夹 185849.sql
4.解压YZMCMS重置密码工具 修改密码。然后登录
管理后台地址:“你的网址/admin”,如果显示404,请参考以下伪静态配置!
Apache伪静态
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]</IfModule>
Nginx伪静态:
location / { #//...省略部分代码
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
如果你的应用安装在二级目录,Nginx的伪静态方法设置如下,其中youdomain是所在的目录名称。
location /youdomain/ {
if (!-e $request_filename){
rewrite ^/youdomain/(.*)$ /youdomain/index.php?s=$1 last;
}
}
举个栗子:
如果你用的是本机电脑上的phpstudy环境的话,在根目录下新建伪静态文件( nginx.htaccess ):
location / { if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
IIS伪静态:
如果你的服务器环境支持ISAPI_Rewrite的话,可以配置httpd.ini文件,添加下面的内容:
C++
RewriteRule (.*)$ /index\.php\?s=$1 [I]
在IIS的高版本下面可以配置web.config,在中间添加rewrite节点:
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions> <action type="Rewrite" url="index.php?s={R:1}" />
</rule>
</rules>
</rewrite>
其他注意事项:
一、首次登录后台后:请点击:内容管理->批量更新URL->更新栏目URL和更新内容URL!
二、如果系统安装成功后,打开首页任然显示“欢迎安装”页面,请强制刷新浏览器缓存!
首页模板
![图片[1]-站长导航网站源码 资源猫站长简洁精品导航网目录导航源码分类导航-逍遥资源网](https://www.4984.cn/wp-content/uploads/2025/07/202505271748351133727826-1024x550.png)
![图片[2]-站长导航网站源码 资源猫站长简洁精品导航网目录导航源码分类导航-逍遥资源网](https://www.4984.cn/wp-content/uploads/2025/07/202505271748351244770547-1024x543.png)
暂无评论内容