我們有時候需要對pbootcms后臺的樣式進行修改,那么這個文件在哪個位置呢?下面跟版網小編為大家講解!
找到根目錄 apps/admin/view/default/index.html這個文件進行修改即可。

修改時候需要注意:
1、請先將文件進行備份(要養成習慣,修改前先備份)
2、修改時候一定要用編輯器軟件(建議使用Notepad++、dreamweaver等)打開index.html文件進行修改。

那么pbootcms要怎么獲取授權碼,獲取后又該如何操作呢?

一、獲取授權碼:

1、登錄pbootcms官網,授權地址為:https://www.pbootcms.com/freesn/,在這里輸入你要獲取授權碼的網址,點擊獲取即可.

二、獲取后怎么授權:

登錄你網站的后臺,默認為域名/admin.php,登錄即可,在后臺找到:全局配置>>配置參數>>系統授權碼一欄,將獲取的授權碼填寫到里面點立即提交即可。

 

pbootcms的偽靜態規則官方其實都是寫好的,文件就在根目錄下的rewrite目錄,其中Apache環境使用.htaccess,同時在規則中有兩種情況,請注意;(虛擬主機如果用apache一般都是支持.htaccess文件的,如果不支持可咨詢下空間商)
,具體偽靜態規則如下:

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?p=$1 [QSA,PT,L]
</IfModule>

如果是windows系統服務器用的IIS7+環境使用web.config,具體代碼如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                 <rule name="reIndex" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="true" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php?p={R:1}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

Nginx請根據手冊修改環境,將nginx.txt文件中的代碼復制到偽靜態中,代碼如下:

#規則適合PbootCMS V2.0+版本
location / {
	if (!-e $request_filename){
		rewrite ^/(.*)$ /index.php?p=$1 last;
	}
}

 

本站部分內容來源互聯網,如果有圖片或者內容侵犯了您的權益,請聯系我們,我們會在確認后第一時間進行刪除!