在我受到RTM轰炸之前,我做了谷歌这个,但我得到的是关于如何安装主题的教程。追踪Wordpress程序
我必须更改朋友网站的链接。通常我只是ssh进入服务器发出命令vim index.html
,并将<a href='this.html'>This<\a>
更改为 <a href='that.html'>That<\a>
,但wordpress真的在我的脑海中。更改index.html
文件中的链接没有任何影响,此外我可以告诉有一些不同这使我相信,它并不是在所有的
使用,因此我看着第一件事是.htaccess
文件:
DirectoryIndex index.php index.html
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
接下来我看着index.php
文件:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
所以接下来我去wp-blog-header.php
然后wp-config.php
然后我就放弃了。
我想知道的是wordpress模板究竟是做什么的。他们是否只是设置了一些CSS代码并使其更容易链接到博客和Facebook?我一直在寻找的东西在wordpress仪表板是这样的:
Main Page = index.html
但是没有这样的东西存在。在pages
标签下有一个“主页”页面,这绝对是我输入的“主页”,但是当我点击“查看页面源代码”时,在Wordpress中显示的html代码与HTML代码不匹配。那么这个新代码究竟在哪里生成?我需要以某种方式拦截它并更改链接。
感谢。结果发生了什么事,那家伙在主页上使用了一个静态模板,然后手动更新了模板文件。我做了一个'grep -R uniquePhrase',但由于某种原因,它并没有完全放弃内容/主题/ – puk
稍微偏离主题,但grep语法将是'grep -r'唯一短语“。 '(最后一个重要) – doublesharp