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:

  1. Joomla! 1.5 SEO
  2. Rename htaccess.txt to be .htaccess in Windows
  3. Load PHP Extension

Tags:

9 Responses to “Activate mod_rewrite in Apache”

  1. It is not enough to enable mod_rewrite.

  2. @SEO
    Would you tell me?

  3. 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.

  4. @mahantesh
    What CMS do you use?

  5. Thank you!..

  6. this is a simple for example active module MOD_rewrite

    http://www.indiabroadband.net/.....write.html

  7. thank u very much

Trackbacks/Pingbacks

  1. Joomla! 1.5 SEO | It's About Dani Gunawan
  2. Joomla! 1.5 SEO

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>