Tags » Htaccess

How To Fix URL Rewriting On Localhost

How to redirect domain from domain.com to www.domain.com using .htaccess file and fix the rewrite on localhost.

Drupal

Hacked by Zool

How bad could it be,

I have no experience with hacking and penetration testing issues, but surely I know about 30% on how to prevent my site from getting hacked hehehe ^_^ . 512 more words

Articles

Speed up site with .htaccess

Append these line in your .htaccess file.

#Trun on compression

mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*

224 more words
Php

Quick Tip - Configuring Laravel Environments on Media Temple

I ran into a pesky little bug today where the Laravel standard environment configuration by hostname wasn’t working on a Media Temple deployed site. After some digging and tweaking, here’s how you get it to work… 351 more words

Coding

Add www automatically by using .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1
</IfModule>

# Add www to any URLs that do not have them:

Website

Disable index.php in CodeIgniter

Using .htaccess we can disable index.php from CodeIgniter URL

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

CodeIgniter