歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 30, 2024, 12:04:47 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  修改成简洁网址后出错了 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 修改成简洁网址后出错了  (閱讀 15740 次)
winder_jojo
新手見習
*
文章: 10


檢視個人資料
« 於: 三月 18, 2006, 09:26:14 上午 »

我的blog地址是  www.tenmeters.com

地址是变简洁了,可是也全都不能用了  我是1。03的,其他没动过,就是将简单格式改成了适宜搜索引擎 嚎啕大哭
已記錄
winman
版主
超級會員
*****
文章: 525


winman


檢視個人資料 個人網站
« 回覆文章 #1 於: 三月 18, 2006, 04:46:29 下午 »

因为没有办法知道你的使用环境,  傷心  我目前只想到以下建议:

1,检查 .htaccess 文件里相关路径是否修改为你LifeType的安装路径。

另外请你看看如下地址:

http://forum.lifetype.org.tw/index.php?topic=2.0
« 最後編輯時間: 三月 18, 2006, 04:48:37 下午 由 winman » 已記錄

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


檢視個人資料
« 回覆文章 #2 於: 三月 18, 2006, 05:02:54 下午 »

可能是服务器不支持吧。。
已記錄
winder_jojo
新手見習
*
文章: 10


檢視個人資料
« 回覆文章 #3 於: 三月 18, 2006, 05:34:30 下午 »

系统是liunx的 

安装目录是www.temeters.com/blog





<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

DirectoryIndex summary.php


帮我看看有问题吗?
已記錄
winman
版主
超級會員
*****
文章: 525


winman


檢視個人資料 個人網站
« 回覆文章 #4 於: 三月 18, 2006, 07:03:11 下午 »

把以下部分的/plog 改为blog 。


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


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

已記錄

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


檢視個人資料
« 回覆文章 #5 於: 三月 19, 2006, 11:18:10 下午 »

改了没用
已記錄
winman
版主
超級會員
*****
文章: 525


winman


檢視個人資料 個人網站
« 回覆文章 #6 於: 三月 20, 2006, 01:39:08 上午 »

 你的webserver是apache吗?另外取消网站的 Url redirecting

看看情况如何?
已記錄

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


檢視個人資料
« 回覆文章 #7 於: 三月 22, 2006, 04:07:33 下午 »

Url redirecting 哪里改?   现在还是不能用适宜搜索引擎选项
已記錄
winman
版主
超級會員
*****
文章: 525


winman


檢視個人資料 個人網站
« 回覆文章 #8 於: 三月 22, 2006, 04:18:56 下午 »

LifeType的“适宜搜索引擎选项”网址模式是利用apache的error document 功能来作的,

因此要使用这个功能要满足以下条件:

1,webserver 是 apache( IIS server 我没试过 ),
2,修改.htaccess 里 error documnet 路径为LifeType安装路径。


BTW: 修改网址模式后你有清除/tmp 下的cache 文件吗?
已記錄

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


檢視個人資料
« 回覆文章 #9 於: 三月 23, 2006, 09:15:31 下午 »

webserver 是Zeus的 难道就不行了吗?
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #10 於: 三月 24, 2006, 03:25:16 下午 »

webserver 是Zeus的 难道就不行了吗?

只要 web server 有支援:
1.重導向 401 403 404 錯誤到 error.php
2.讓 web server 能認得簡潔網址模式專用的程式,就是 LT 安裝目錄下那些沒有 .php 副檔名的程式

zeus 應該都有支援,但是語法該如何寫,得請你自行查一查 zeus 的文件了。我們絕大多數人都是用 apache 的。

lss
已記錄

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


檢視個人資料
« 回覆文章 #11 於: 三月 28, 2006, 08:37:23 下午 »

webserver 是Zeus的 难道就不行了吗?

只要 web server 有支援:
1.重導向 401 403 404 錯誤到 error.php
2.讓 web server 能認得簡潔網址模式專用的程式,就是 LT 安裝目錄下那些沒有 .php 副檔名的程式

zeus 應該都有支援,但是語法該如何寫,得請你自行查一查 zeus 的文件了。我們絕大多數人都是用 apache 的。

lss

请问认得是什么概念。。。
已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #12 於: 三月 28, 2006, 09:55:09 下午 »

请问认得是什么概念。。。
因為那些程式並沒有 .php 的副檔名,以 apache 來說,副檔名 .php 的才是 php 程式。若沒有 .php 副檔名又要當成 php 程式執行,就要額外設定,讓 apache 認得他們是 php 程式。 LT 的標準做法,就是 .htaccess 裡面如下的設定:
程式碼:
<Files post>
 ForceType application/x-httpd-php
</Files>
這樣, apache 就會把 post 這個檔案當成 php 程式執行了。

zeus 應該也支援類似的方法吧。

lss
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
頁: [1]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  修改成简洁网址后出错了 « 上篇主題 下篇主題 »
    前往: