Hiển thị các bài đăng có nhãn .htaccess. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn .htaccess. Hiển thị tất cả bài đăng

Thứ Bảy, 29 tháng 6, 2024

Issue joomla Content-Security-Policy blocked a JavaScript .htaccess SOLVED

Browser error: Content-Security-Policy: The page’s settings blocked a JavaScript eval (script-src) from being executed because it violates the following directive: “script-src 'self' 'unsafe-inline' ...

Reason: host setting or .htaccess block scripts

Solutions: solution 1 or 2
Solution 1: .htaccess check example line

#Header set Content-Security-Policy "script-src 'self' 'unsafe-inline' https://cdn.ckeditor.com https://ajax.googleapis.com/ https://cdn.jsdelivr.net https://js.calltrk.com/ https://birdeye.com/ https://cdn.calltrk.com/ https://www.google-analytics.com/ https://widgets-v7.birdeye.com/ https://www.googletagmanager.com/ https://portal.setmysite.com/; object-src 'none';"

Remove or disable this line


Solution 2: .htaccess admin line s
<IfModule mod_headers.c>
Header always set Content-Security-Policy "script-src 'none'"
</IfModule>

 

 



Thứ Năm, 27 tháng 6, 2024

.htaccess rewrite rule change '/' to '?'

Details: .htaccess rewrite rule change '/' to '?'
http://mydomain.com/myservices/support
to
http://mydomain.com/myservices?support
 

Solution:
<IfModule mod_rewrite.c>
    RewriteRule ^myservices/(.*)$ /myservices?$1 [R=301,NC,L]
</IfModule>

Thứ Hai, 11 tháng 6, 2018

Joomla HTTPS 2.5, 3.x - Layout broken SOLVED

Step 1:
.htaccess add to top
<IfModule mod_env.c>
   SetEnv HTTPS on
</IfModule>

Step 2:  System / Global Configuration / Server / Force HTTPS = Entire Site

Chủ Nhật, 23 tháng 8, 2015

.htaccess directory index

Description: Use .htacccess file index priority index.php, index.html, index.asp...
Solution: .htaccess file
Add code:
DirectoryIndex index.php index.html