Khalil Majdalawi's Blog Web development,Technology,Games and more…

15Jun/090

Mount and Unmout ISO Files in Ubuntu

Mount ISO File

First you need to make the directory to put the ISO file into using the following command

sudo mkdir /media/isodir

Then use following command

sudo mount your_image_file.iso /media/isodir/ -t iso9660 -o loop

Now you should have your iso file mounted, and accessible from your desktop.

Unmount ISO File

Just use following command

sudo umount /media/isodir

Tagged as: , No Comments
28May/093

RIP IE6 for god’s sake

ripie6-2

if i hate Microsoft , IE6 will be the reason not BSOD not security not stability , "IE6" i wish it vanish for good

ripie6-3

RIPIE6 to donate for memorial service

27May/090

intel Sponsors of Tomorrow – ads

this Intel ad's are hilarious. i love them





Tagged as: , No Comments
21May/090

Remove or force www from domain name

its very simple SEO trick to avoid duplicate content on Google search engine and increase your rank , you have to chose which one suit you www or non-www

first you have to enable "rewrite mod" which is apache server feature click here

then use the following lines in your .htaccess file
to remove WWW

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

to force WWW

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

Please, note that the .htaccess should be located in the web site main folder.

for farther reading about .htaccess Check this great post

Tagged as: No Comments
21May/090

Enable Mod rewrite in apache

For Debian use

sudo a2enmod rewrite

For Windows

  1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
  2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so
  3. Also find the line ClearModuleList is uncommented then find and make sure that the line AddModule mod_rewrite.c is not commented out.

restart your apache service and you are cool to go

Tagged as: No Comments