近期网站首页突然无法打开,显示404 not found nginx。后缀加上index.php后则可以正常访问首页。现在百度引擎搜主页都被砍掉收录了,难受啊。
nginx和伪静态都设置了,内页全部正常,只有首页需要加index.php,内页打开后一切正常,内页url也没有出现index.php。
nginx.conf和index.php都有设置好,但是首页依旧404,有没有懂的大神求指教。
如何将帖子类型的首页作为Wordpress的首页提交?在设置中,Wordpress只允许页面作为首页。
Example:
Post type: Book
Post type slug: books
Post type index: archieve-books.php
我需要mydomain.com /book被称为mydomain.com的首页,谢谢。
我用wordpress循环创建了一个页面模板作为我的首页/首页,代码如下:
<?php query_posts('posts_per_page=10'); ?>
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
get_template_part( 'loop&
我在what-i.com上有一个使用Drupal Commons profile的网站。我已经创建了一个名为'whati‘的自定义主题,并将其放在/sites/all/themes文件夹中。我的page - front t.tpl.php应该驱动我的首页。
它有两个场景的if-else语句:已登录用户和未登录用户。对于登录的用户来说,一切都很好:登录后,用户会看到我的自定义首页。对于非登录(匿名)用户,它总是将它们转发到。我不知道如何重写该重定向:它不能在我的页面- front t.tpl.php中找到if语句,我尝试使用frontpage模块但没有成功,我还试图更改Site Info