Кто-нибудь знает, почему этот URL работает безупречно:
http://plumcreekgarlic.com/
Но этот URL приводит к ошибке Wordpress?
http://www.plumcreekgarlic.com/
Это проблема Wordpress или проблема с сервером / записью / htaccess?
Спасибо!
Файл myHTAccess:
# 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
Мой файл functions.php (часть созданной мной тематической дочерней темы):
/* ADD CUSTOM JQUERY */
function childtheme_scripts() {?>
<script type="text/javascript" src="http://plumcreekgarlic.com/wp-content/themes/plumcreek/custom_jquery.js"></script>
<?php }
add_action('wp_head','childtheme_scripts');
?>
<?php
/* ADJUST CATEGORY TITLES
Info here: http://www.cozmoslabs.com/forums/topic/change-title-for-category-archive
*/
function street_page_title() {
$content = '';
if (is_attachment()) {
$content .= '<h2 class="page-title"><a href="';
$content .= get_permalink($post->post_parent);
$content .= '" rev="attachment"><span class="meta-nav">« </span>';
$content .= get_the_title($post->post_parent);
$content .= '</a></h2>';
} elseif (is_author()) {
$content .= '<h1 class="page-title author">';
$author = get_the_author();
$content .= __('Author Archives: ', 'thematic');
$content .= '<span>';
$content .= $author;
$content .= '</span></h1>';
} elseif (is_category()) {
$content .= '<h1 class="entry-title">';
$content .= __('', 'thematic');
$content .= ' <span>';
$content .= single_cat_title('', FALSE);
$content .= '</span></h1>' . "\n";
$content .= '<div class="archive-meta">';
if ( !(''== category_description()) ) : $content .= apply_filters('archive_meta', category_description()); endif;
$content .= '</div>';
} elseif (is_search()) {
$content .= '<h1 class="page-title">';
$content .= __('Search Results for:', 'thematic');
$content .= ' <span id="search-terms">';
$content .= wp_specialchars(stripslashes($_GET['s']), true);
$content .= '</span></h1>';
} elseif (is_tag()) {
$content .= '<h1 class="page-title">';
$content .= __('Tag Archives:', 'thematic');
$content .= ' <span>';
$content .= __(thematic_tag_query());
$content .= '</span></h1>';
} elseif (is_day()) {
$content .= '<h1 class="page-title">';
$content .= sprintf(__('Daily Archives: <span>%s</span>', 'thematic'), get_the_time(get_option('date_format')));
$content .= '</h1>';
} elseif (is_month()) {
$content .= '<h1 class="page-title">';
$content .= sprintf(__('Monthly Archives: <span>%s</span>', 'thematic'), get_the_time('F Y'));
$content .= '</h1>';
} elseif (is_year()) {
$content .= '<h1 class="page-title">';
$content .= sprintf(__('Yearly Archives: <span>%s</span>', 'thematic'), get_the_time('Y'));
$content .= '</h1>';
} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
$content .= '<h1 class="page-title">';
$content .= __('Blog Archives', 'thematic');
$content .= '</h1>';
}
$content .= "\n";
return $content;
}
add_filter('thematic_page_title', 'street_page_title');
?>