On the Internet, we often find URL which has many query strings, like show below:
http://blog.danigunawan.com/joomla15/index.php?option=com_content&view=article&id=19&Itemid=27
URL with form above will be hard to be indexed by the search engine if we compare with the URL below:
http://blog.danigunawan.com/joomla15/joomla-overview
URL which has many query strings can be formatted like in second example using rewrite URL. To rewrite URL, it could be done using certain class in web programming language. I won’t discuss it here. Besides, it can be done using a module in apache web server named mod_rewrite. As default, mod_rewrite is not active.
Module mod_rewrite can be activated by editing apache configuration file. Apache configuration file is usually saved in httdp.conf file. Apache configuration file for XAMPP Windows version can be found in [XAMPP installation directory]/apache/conf. Open httpd.conf with text editor and find the word “mod_rewrite”. For XAMPP Windows version it usually can be found in line 118. As default, in inactive module, there is character “#” in the start of the line (It means that line will not be executed by apache). Example:
#LoadModule rewrite_module modules/mod_rewrite.so
To activate it, we need to remove character # only. After that, restart apache. Module mod_rewrite will active after apache run.
Related posts:
Tags: Apache








March 16th, 2009 at 11:49 pm
It is not enough to enable mod_rewrite.
March 17th, 2009 at 6:11 am
@SEO
Would you tell me?
May 25th, 2009 at 4:02 pm
Hi,
I have activated mod_reqrite and renamed htaccess.txt to .htaccess.
But still no success at all…i can see the home page only. But if i click any menu link……it gives me 404 error. Please help.
May 29th, 2009 at 12:07 am
@mahantesh
What CMS do you use?
August 23rd, 2009 at 7:01 pm
Thank you!..
September 30th, 2009 at 1:36 pm
this is a simple for example active module MOD_rewrite
http://www.indiabroadband.net/.....write.html
November 4th, 2009 at 2:15 pm
thank u very much