歡迎光臨, 訪客. 請先 登入註冊一個帳號.
五月 08, 2024, 10:28:20 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  关于url设置的问题 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 关于url设置的问题  (閱讀 11277 次)
toni
新手見習
*
文章: 16


檢視個人資料 個人網站
« 於: 二月 16, 2006, 03:17:35 下午 »

原来是使用简单格式,后来想改成适合搜索引擎模式
就发现没法浏览页面的情况?
是否不支持中途修改url设置?
/tmp缓存也清除过没有用的
已記錄

winman
版主
超級會員
*****
文章: 525


winman


檢視個人資料 個人網站
« 回覆文章 #1 於: 二月 16, 2006, 04:16:32 下午 »

请检查 .htaccess 这个文件里相关路径是否有修改为你的LifeType安装路径。
已記錄

俗语说:授予鱼,不如授予渔。因此在发问前先搜寻论坛,或许困扰你
的问题,在之前已经有朋友遇到并得到解答了。这样不但提高解决问题
的效率,还能令自己的能力不断加强。加油啊。
toni
新手見習
*
文章: 16


檢視個人資料 個人網站
« 回覆文章 #2 於: 二月 16, 2006, 04:22:39 下午 »

我装了以后没有动过,应该是改哪里?
<Files .htaccess>
deny from all
</Files>

<Files config.properties.php>
deny from all
</Files>

Options -Indexes
Options +FollowSymLinks

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /plog/

# Permalink to the blog entry (i.e. /plog/1_userfoo/archive/3_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]+)_[^.]+\.html$ index.php?op=ViewArticle&blogId=$1&articleId=$2 [L,NC]

# Monthly archive (i.e. /plog/1_userfoo/archive/200401.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{6})\.html$ index.php?blogId=$1&Date=$2 [L,NC]

# Daily archive (i.e. /plog/1_blogfoo/archive/20040101.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{8})\.html$ index.php?blogId=$1&Date=$2 [L,NC]

# Album (i.e. /plog/88_userfoo/albums/34_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/albums/([0-9]+)_[^.]+\.html$ index.php?op=ViewAlbum&blogId=$1&albumId=$2 [L,NC]

# Albums (i.e. /plog/88_userfoo/albums/)
RewriteRule ^([0-9]+)_[^/]+/albums/$ index.php?op=ViewAlbum&blogId=$1&albumId=0 [L,NC]

# Category view (i.e. /plog/88_userfoo/categories/4_cat-foobar.html)
RewriteRule ^([0-9]+)_[^/]+/categories/([0-9]+)_[^.]+\.html$ index.php?blogId=$1&postCategoryId=$2 [L,NC]

# Category-Feeds (i.e. /plog/3_userfoo/feeds/categories/2_category/atom)
RewriteRule ^([0-9]+)_[^/]+/feeds/categories/([0-9]+)_[^.]+/(.*)$ rss.php?blogId=$1&categoryId=$2&profile=$3 [L,NC]

# Feeds (i.e. /plog/3_userfoo/feeds/atom)
RewriteRule ^([0-9]+)_[^/]+/feeds/(.*)$ rss.php?blogId=$1&profile=$2 [L,NC]

# Trackbacks (i.e. /plog/3_userfoo/trackbacks/34_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/trackbacks/([0-9]+)_[^.]+\.html$ index.php?op=Trackbacks&blogId=$1&articleId=$2 [L,NC]

# Comment form (i.e. /plog/88_userfoo/comment/34_title-foo-bar.html)
RewriteRule ^([0-9]+)_[^/]+/comment/([0-9]+)_[^.]+\.html$ index.php?op=Comment&blogId=$1&articleId=$2 [L,NC]

# Resources (i.e. /plog/88_userfoo/resources/this-is-a-resource-name.pdf.html)
RewriteRule ^([0-9]+)_[^/]+/resources/([^.]+)\.([^.]+)\.html$ index.php?op=ViewResource&blogId=$1&resource=$2.$3 [L,NC]

# Download a resource (i.e. /plog/88_userfoo/get/this-is-a-resource-name.pdf)
RewriteRule ^([0-9]+)_[^/]+/get/(.+)$ resserver.php?blogId=$1&resource=$2 [L,NC]

# Static Pages (i.e /plog/3_userfoo/demosites)
RewriteRule ^([0-9]+)_[^/]+/(.+)$ index.php?op=Template&blogId=$1&show=$2 [NC]

# A non-default blog (i.e. /plog/88_userfoo)
RewriteRule ^([0-9]+)(_[^/]+)?$ index.php?blogId=$1 [L,NC]

# Daily archive (i.e. /plog/1_userfoo/archive/20040101.html)
RewriteRule ^([0-9]+)_[^/]+/archive/([0-9]{8})\.html$ index.php?blogId=$1&Date=$2 [L,NC]

</IfModule>



<Files post>
 ForceType application/x-httpd-php
</Files>

<Files archives>
 ForceType application/x-httpd-php
</Files>

<Files static>
 ForceType application/x-httpd-php
</Files>

<Files rss>
 ForceType application/x-httpd-php
</Files>

<Files category>
 ForceType application/x-httpd-php
</Files>

<Files trackbacks>
 ForceType application/x-httpd-php
</Files>

<Files comment>
 ForceType application/x-httpd-php
</Files>

<Files resource>
 ForceType application/x-httpd-php
</Files>

<Files get>
 ForceType application/x-httpd-php
</Files>

<Files album>
 ForceType application/x-httpd-php
</Files>

<Files blog>
 ForceType application/x-httpd-php
</Files>

<Files user>
 ForceType application/x-httpd-php
</Files>

ErrorDocument 401 /plog/error.php
ErrorDocument 403 /plog/error.php
ErrorDocument 404 /plog/error.php






已記錄

winman
版主
超級會員
*****
文章: 525


winman


檢視個人資料 個人網站
« 回覆文章 #3 於: 二月 16, 2006, 04:32:17 下午 »

把 .htaccess 里 默认的 /plog 目录改为你安装LifeType的目录。
已記錄

俗语说:授予鱼,不如授予渔。因此在发问前先搜寻论坛,或许困扰你
的问题,在之前已经有朋友遇到并得到解答了。这样不但提高解决问题
的效率,还能令自己的能力不断加强。加油啊。
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #4 於: 二月 16, 2006, 04:35:38 下午 »

詳細請參考 wiki 文件:安裝 LifeType 裡面的 1.5 修改 .htaccess

lss
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
toni
新手見習
*
文章: 16


檢視個人資料 個人網站
« 回覆文章 #5 於: 二月 16, 2006, 10:05:16 下午 »

已经按照上述修改了,问题依然~~
具体可以看 http://hbird.vicp.net/blog/ 看看是什么问题的?
已記錄

gz88
新手見習
*
文章: 7


me


檢視個人資料 個人網站
« 回覆文章 #6 於: 二月 26, 2006, 12:05:24 上午 »

把 .htaccess 里 默认的 /plog 目录改为你安装LifeType的目录。

如果我建立的子域名.. 例如 life.XXX.COM  CP会生成一个LIFE的文件夹.. 那我直接在life.XXX.COM  低下安装.. 我需要改成什么呢  .. 要改成 /LIFE  还是单独一个 /   呢
已記錄

我的 LifeType .. http://life.moccn.com
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  关于url设置的问题 « 上篇主題 下篇主題 »
    前往: