Bagaimana mensetting permalink sebenarnya berkaitan dengan bagaimana melakukan Setting htaccess pada area hosting. Cermati saja beberapa gambar berikut.
|
Panel penulisan Nggak terlihat Ciri masalah HTAccess |
|
Panel Theme Manage Nggak terlihat Ciri masalah HTAccess |
terapinya, buka cpanelmu. Ke file manager, lari ke folder webmu. Cari tulisan yang ditunjukkan angka 1, lalu buka pake code editor di gambar 2.
|
Oprek HTAccess dari File Manager Hostingmu |
Setelah itu masukan setting htaccess yang baru. Contohnya bisa pake:
# 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
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
# Or, compress certain file types by extension:
<Files *.html>
SetOutputFilter DEFLATE
</Files>
Header unset ETag
FileETag None
|
Masukan tambahi atau ganti setting htaAccesnya |
Setelah setting selesai maka gambar dan file file akan terbaca dengan baik:
|
Hasil setelah setting HTA Acces |
|
Theme preview pun bisa muncul |
No comments:
Post a Comment
Boleh komen komen lo, silakan,,,