Tags » Htaccess

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

Wordpress

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

</IfModule>

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

Htaccess

How to increase speed of your website

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

## EXPIRES CACHING ##

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
## EXPIRES CACHING ##

Header unset Pragma
FileETag None
Header unset ETag

… 13 more words
WordPress

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

Codeigniter - Placing assets folder

While many practices are followed while placing the assets folder in Codeigniter, I feel that the best place is in the root folder along with the application directory as shown below. 61 more words

Code Snippet

Remove index.php from URL in Codeigniter

Open applications/config/config.php and make the following changes :

Replace


$config['index_page'] = 'index.php';

With


$config['index_page'] = '';

And add the following code to a new file and save it as .htaccess inside the root folder : 21 more words

Code Snippet