Pretty URLs fail to load assets
Permalink
Hi,
When I activate pretty URLs on a site I'm building, some assets fail to load, and the system stops functioning properly without javascript.
here are the scripts that fail to load:
domain/ccm/assets/localization/jquery/ui/js
domain/ccm/assets/localization/core/js
domain/ccm/assets/localization/redactor/js
Anyone know what might cause this?
Thank you
When I activate pretty URLs on a site I'm building, some assets fail to load, and the system stops functioning properly without javascript.
here are the scripts that fail to load:
domain/ccm/assets/localization/jquery/ui/js
domain/ccm/assets/localization/core/js
domain/ccm/assets/localization/redactor/js
Anyone know what might cause this?
Thank you
I am seeing the same behavior with v8.3.1 and getting 404 errors on the js assets. Running pretty urls, but using the index.php doesn't matter. The key issue is the site map tree fails completely.
What's the fix for Nginx? Thanks.
This is the site script I have running presently:
================================================
server {
log_not_found on;
error_log logs/domain warn;
listen 80;
server_name http://www.domain.com ;
root /var/www/html/domain;
index index.php index.html index.htm;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* .(gif|jpg|jpeg|png|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|js|css|wml|swf)$ {
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
# protect hidden files.
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
#try_files $uri $uri/ /index.php$request_uri /index.php;
}
# php-fpm configuration
location ~ .php$ {
#try_files $uri =404;
include fastcgi.conf;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
set $script $uri;
set $path_info "";
if ($uri ~ "^(.+\.php)(/.+)") {
set $script $1;
set $path_info $2;
}
fastcgi_param URI $uri;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME $document_root$script;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
}
What's the fix for Nginx? Thanks.
This is the site script I have running presently:
================================================
server {
log_not_found on;
error_log logs/domain warn;
listen 80;
server_name http://www.domain.com ;
root /var/www/html/domain;
index index.php index.html index.htm;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* .(gif|jpg|jpeg|png|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|js|css|wml|swf)$ {
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
# protect hidden files.
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
#try_files $uri $uri/ /index.php$request_uri /index.php;
}
# php-fpm configuration
location ~ .php$ {
#try_files $uri =404;
include fastcgi.conf;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
set $script $uri;
set $path_info "";
if ($uri ~ "^(.+\.php)(/.+)") {
set $script $1;
set $path_info $2;
}
fastcgi_param URI $uri;
fastcgi_param PATH_INFO $path_info;
fastcgi_param SCRIPT_FILENAME $document_root$script;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
}
hi virtualsands,
Did you have any luck on this? I am running into the same issue.
Thanks!
Did you have any luck on this? I am running into the same issue.
Thanks!
Apache needed some additional configuration for mod_rewrite to work