如何設定
設定您的基本網址與資料庫
SWE的資料夾(seaEngine)底下有個config資料夾,裡面是基本的設定檔所在,請對您的Server環境進行基本的設定
確定您有啟動Apache Server的Rewrite功能
Ubuntu的使用者如果沒有啟用htaccess和Rewrite Model,可以參考看看下面的教學
[SEA:linuxCode]
輸入指令啟動Rewrite Engine
#sudo a2enmod rewrite
就可以啟用Rewrite模組了
然後是啟動Htaccess的權限
輸入以下指令
#sudo gedit /etc/apache2/sites-enabled/000-default
(請把上面的全形斜線轉成半形)
然後找到
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
把
AllowOverride None
改成
AllowOverride All
最後重新啟動Apache Server,指令如下
#sudo service apache2 restart
Linux Ubuntu的使用者就完成了Rewrite和Htaccess設定了
[/SEA]
Windows使用者代說明 :)
2.設定您的資料庫...
[SEA:linuxCode]
輸入指令啟動Rewrite Engine
#sudo a2enmod rewrite
就可以啟用Rewrite模組了
然後是啟動Htaccess的權限
輸入以下指令
#sudo gedit /etc/apache2/sites-enabled/000-default
(請把上面的全形斜線轉成半形)
然後找到
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
把
AllowOverride None
改成
AllowOverride All
最後重新啟動Apache Server,指令如下
#sudo service apache2 restart
Linux Ubuntu的使用者就完成了Rewrite和Htaccess設定了
[/SEA]
Windows使用者代說明 :)
2.設定您的資料庫...
Coming Soon...
贊助本站的廣告