Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-01-30 15:16:45

fengzhihao
New Member
Registered: 2013-01-30
Posts: 4

[zh-cn] 新手问题,点击一篇博客标题,弹出404页面

刚下载了4.5.4,遇到个白痴问题,求解答!
例如,新增博客 《Hello World》,保存之后,点击Hello Wrld这篇博客的标题,应该跳转到该博客的页面,为啥总是404页面呢?
是要新建一个页面来进行博客的呈现吗?

点击about同样弹出404页面。。。

Offline

#2 2013-01-30 18:57:41

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: [zh-cn] 新手问题,点击一篇博客标题,弹出404页面

I translated your message through google translate. The 404s you are getting might be because your server does not support clean urls. Go to Admin>Preferences>Permanent link mode and switch to messy. All will/should work just fine after that.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2013-01-31 13:23:41

fengzhihao
New Member
Registered: 2013-01-30
Posts: 4

Re: [zh-cn] 新手问题,点击一篇博客标题,弹出404页面

colak wrote:

I translated your message through google translate. The 404s you are getting might be because your server does not support clean urls. Go to Admin>Preferences>Permanent link mode and switch to messy. All will/should work just fine after that.

Thank you very much .I deployed my textpattern on the Bluehost,I konw the rewrite mod has been opened,may be something else still not well configed,so it doesn’t work…

Thank you!

Offline

#4 2013-01-31 13:29:14

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: [zh-cn] 新手问题,点击一篇博客标题,弹出404页面

It seems that Bluehost has its own way of hosting sites. this thread might be of help.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2013-02-01 16:25:07

fengzhihao
New Member
Registered: 2013-01-30
Posts: 4

Re: [zh-cn] 新手问题,点击一篇博客标题,弹出404页面

colak wrote:

It seems that Bluehost has its own way of hosting sites. this thread might be of help.

I hava resolved this problem.Just change the file .htaccess ,for example,my site is http://room12302.com/site1,remove “#” in line 7,change the RewriteBase to “/site1/”,if my site is http://room12302.com,change the RewriteBase to “/”,and it will works.

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
	RewriteEngine On
         RewriteBase /site1/ 
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]
	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php
	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
# SVG
AddType image/svg+xml  svg svgz
AddEncoding gzip       svgz

Last edited by fengzhihao (2013-02-01 16:30:20)

Offline

#6 2013-02-01 17:04:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: [zh-cn] 新手问题,点击一篇博客标题,弹出404页面

Thanks, can you also post it in this thread stating bluehost in your post?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2013-05-13 18:04:16

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 200
Website

Re: [zh-cn] 新手问题,点击一篇博客标题,弹出404页面

I just converted my Bluehost site to Textpattern. Everything works fine, without your modification to .htaccess. How strange!

Offline

#8 2013-07-03 07:35:21

h12g
New Member
Registered: 2013-07-03
Posts: 2

Re: [zh-cn] 新手问题,点击一篇博客标题,弹出404页面

TXP默认是未使用简洁URL的,是不是你使用了该设置,而你的服务器有不支持URL Rewrite呢?

Offline

Board footer

Powered by FluxBB