Tags » Htaccess

Ignore subfolder folder .htaccess

RewriteCond %{REQUEST_URI} !^/yourDirectoryName
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1


Remove .html in htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html


How add IP restriction for access to wp-admin login page through htaccess file : Wordpress

Hello Friends.

Hope you are doing well!!

As you know there days hacker can easily hack wordpress site admin because generally we used common username/password of access to admin (i.e admin/admin123, admin/123456). 142 more words


Page Redirects: Plugins & .htaccess bonus

Here’s a listing of sites related to redirects on your site. I ended up selecting theĀ Quick Page/Post Redirect Plugin as the best fit for my current usage. 219 more words

Rewriting URLs

  • URL Rewrite Condition
  • URL Rewrite Rule
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^(.*)/$ index.php?page_id=$1


Rewrite Conditions are the occurrences that are used to rewrite the url as per the Rewrite Rule. 25 more words


How to increase speed of your website

Open your htaccess file and paste this code in top of your file


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 text/html "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 2 days"

# Set Pragma header
Header set Pragma "public"
# Set Cache-Control header
Header append Cache-Control "public, must-revalidate, proxy-revalidate"

# Set Entity Tag header
FileETag MTime Size

# END Headers: Ensure client-side caching of objects

Header unset Pragma
FileETag None
Header unset ETag

… 13 more words

Ternyata semua itu karena perbedaan versi...

Sudah hampir seharian saya utak-atik program yang diupload ke server. Dimulai tadi pagi bencana itu datang…

Tiap tahun Kakek saya mengadakan acara Halal Bi Halal, tepatnya beberapa hari setelah lebaran. 556 more words

Bahasa Indonesia