我有一個問題,在WordPress的資源網址。WordPress的:url資源返回404
在索引頁,我的CSS資源,js和圖像正確稱爲:
的wp-content /主題/對焦模板/ JS/lib中/ jquery.min.js
但帖子詳細信息頁面上,帖子的名稱添加到URL:
myDomain.com/projet-2012/wp-content/themes/focus-template/js/lib/jquery.mixitup。 min.js 404(未找到)
我覺得我的虛擬主機配置不正確,但我找不到在哪裏做的問題..
<VirtualHost *:80>
ServerName local.afric-edu.com
DocumentRoot /var/www/afric-edu/
ErrorLog /var/log/apache2/errors.log
<Directory "/var/www/afric-edu">
AddDefaultCharset UTF-8
DirectoryIndex index.php index.html
RewriteEngine On
RewriteBase/
AddType image/gif .gif
AddType image/ief .ief
AddType image/jpeg .jpeg .jpg .jpe
AddType image/png .png
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^.*\.(jpe?g|png|gif|css|js)$ [NC]
RewriteRule . /index.php [L]
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
編輯:
<head>
<meta charset="utf-8">
<meta name="robots" content="index, nofollow">
<meta name="description" content="Your website description here">
<meta name="keywords" content="your, website, keywords, here">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="../images/favicon/favicon.ico">
<title><?php wp_title('|', true, 'right'); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/jquery.min.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/modernizr.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/pace.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/classie.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/jquery.fittext.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/jquery.magnific-popup.min.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/jquery.mixitup.min.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/jquery.sudoslider.min.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/jquery.superslides.min.js"></script>
<script type="text/javascript" src="wp-content/themes/focus-template/js/lib/smoothscroll.js"></script>
<link rel="stylesheet" href="wp-content/themes/focus-template/css/lib/font-awesome.min.css">
<link rel="stylesheet" href="wp-content/themes/focus-template/css/lib/magnific-popup.css">
<link rel="stylesheet" href="wp-content/themes/focus-template/css/lib/lite.css">
<link rel="stylesheet" href="wp-content/themes/focus-template/css/style.css">
<link rel="stylesheet" href="wp-content/themes/focus-template/css/colors/yellow.css">
<link rel="stylesheet" href="wp-content/themes/focus-template/genericons/genericons.css">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php wp_head(); ?>
</head>
:
資源的調用以這種方式取得
你知不知道解決這個問題嗎?
感謝您的幫助:)
@RhysStewart我檢查功能手動做了。我在編輯中添加了代碼。 – MeursaultF