Tags » Htaccess

Apache redirects and performance issues

Where should you put a redirection rule in Apache?

This is the story: I am serving a widget for a client, on their homepage. This client has a huge amount of traffic, much more than what I normally have for my application. 180 more words


Cara enable apache module rewrite pada ubuntu

Langkah pertama buka terminal (Alt+ctrl+t)

sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart  


sudo gedit /etc/apache2/sites-available/default   

lalu edit

Options Indexes FollowSymLinks MultiViews 
# AllowOverride -> changed from 'None' to 'FileInfo' 
# Commented by: yourname 
AllowOverride FileInfo 
Order allow,deny 
allow from all
… 16 more words

Hiding index.php from url in Codeigniter

I recently migrated to a new apache server and realised that the url was working correctly only if index.php is suffixed to the base url. On a localhost it looks like this… 196 more words


Drupal .htaccess

To access the files Form serverĀ 

RewriteCond %{REQUEST_URI} ^/sites/default/files/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://example.com/$1