apache - CSS/JavaScript not getting loaded inextended URL created using wordpress path based multisite network -
need assistance here respect rewrite rules of apache httpd
.
the issue configuring multisite
using wordpress
. able create extended url
using path based multisite feature of wordpress
. extended url
http://www.example.com.au/support/
the issue extended url
is not loading css/java scripts
when loading extended url
. that's why ui looks broken extended url
. looks not able load files css/java
scripts available. telling contents of access log file shown below.
10.200.64.39 "-" - - [02/nov/2015:00:29:37 +1100] "get /support/wp-content/themes/twentyfifteen/js/functions.js?ver=20150330 http/1.1" 404 9402 "http://www.example.com.au/support/wp-admin/" "mozilla/5.0 (windows nt 6.1; wow64; rv:40.0) gecko/20100101 firefox/40.0" 39020 "-" "cookies:wordpress_test_cookie=wp+cookie+check;
it showing 404 not found
following file
get /support/wp-content/themes/twentyfifteen/js/functions.js?ver=20150330 http/1.1"
$ ls -l /support/wp-content/themes/twentyfifteen/js/functions.js ls: cannot access /support/wp-content/themes/twentyfifteen/js/functions.js: no such file or directory $ ls -l wp-content/themes/twentyfifteen/js/functions.js -rwxrwxrwx 1 nobody admin 5899 jul 30 04:13 wp-content/themes /twentyfifteen/js/functions.js` $ pwd /data/share/web/marketing/digitalsol $ ls -ld wp-content/ wp-includes/ wp-admin/ drwxrwsrwx 9 nobody admin 4096 sep 16 00:58 wp-admin/ drwxrwsrwx 5 nobody admin 4096 oct 30 22:13 wp-content/ drwxrwsrwx 12 nobody admin 4096 sep 16 00:58 wp-includes/
the issue extended url support directory part of extended url
directory not physically exist on system.
so , need modify rewrite
rules can load css/javascript
in extended url
. shown below current rewrite rules available.
$ cat .htaccess rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] # add trailing slash /wp-admin rewriterule ^([_0-9a-za-z-]+/)?wp-admin$ $1wp-admin/ [r=301,l] rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -d rewriterule ^ - [l] rewriterule ^([_0-9a-za-z-]+/)?(wp-(content|admin|includes).*) $2 [l] rewriterule ^([_0-9a-za-z-]+/)?(.*\.php)$ $2 [l] rewriterule . index.php [l]
please suggest in resolving issue
in apache configuration file , had wp_security.conf
enabled.this configuration file contains acls deny .htaccess
all. on commenting acl entry , css/js loading fine in extended multisite url.
Comments
Post a Comment