LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: winder_jojo 於 三月 18, 2006, 09:26:14 上午



主題: 修改成简洁网址后出错了
作者: winder_jojo三月 18, 2006, 09:26:14 上午
我的blog地址是  www.tenmeters.com (http://www.tenmeters.com)

地址是变简洁了,可是也全都不能用了  我是1。03的,其他没动过,就是将简单格式改成了适宜搜索引擎 :'(


主題: Re: 修改成简洁网址后出错了
作者: winman三月 18, 2006, 04:46:29 下午
因为没有办法知道你的使用环境,  :-(  我目前只想到以下建议:

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

另外请你看看如下地址:

http://forum.lifetype.org.tw/index.php?topic=2.0


主題: Re: 修改成简洁网址后出错了
作者: 宁雪天三月 18, 2006, 05:02:54 下午
可能是服务器不支持吧。。


主題: Re: 修改成简洁网址后出错了
作者: winder_jojo三月 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


帮我看看有问题吗?


主題: Re: 修改成简洁网址后出错了
作者: winman三月 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



主題: Re: 修改成简洁网址后出错了
作者: winder_jojo三月 19, 2006, 11:18:10 下午
改了没用


主題: Re: 修改成简洁网址后出错了
作者: winman三月 20, 2006, 01:39:08 上午
 你的webserver是apache吗?另外取消网站的 Url redirecting

看看情况如何?


主題: Re: 修改成简洁网址后出错了
作者: winder_jojo三月 22, 2006, 04:07:33 下午
Url redirecting 哪里改?   现在还是不能用适宜搜索引擎选项


主題: Re: 修改成简洁网址后出错了
作者: winman三月 22, 2006, 04:18:56 下午
LifeType的“适宜搜索引擎选项”网址模式是利用apache的error document 功能来作的,

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

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


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


主題: Re: 修改成简洁网址后出错了
作者: winder_jojo三月 23, 2006, 09:15:31 下午
webserver 是Zeus的 难道就不行了吗?


主題: Re: 修改成简洁网址后出错了
作者: lss三月 24, 2006, 03:25:16 下午
webserver 是Zeus的 难道就不行了吗?

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

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

lss


主題: Re: 修改成简洁网址后出错了
作者: winder_jojo三月 28, 2006, 08:37:23 下午
webserver 是Zeus的 难道就不行了吗?

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

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

lss

请问认得是什么概念。。。


主題: Re: 修改成简洁网址后出错了
作者: lss三月 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