Monday, August 27, 2007

My issue with mod_rewrite

With my xammp in Windows, enable mod_rewrite is so easy. I just need to uncomment module mod_rewrite in Apache configuration (httpd.conf), restart apache, then everything just fine.
Of course i still need to add .htaccess.

In my Ubuntu linux machine, i need to struggle just to enable mod_rewrite module. I figure out that in linux machine (Ubuntu), apache configuration was in different file , but i figure it out and activate the mod_rewrite. In phpinfo(), i can see mod_rewrite is active, but then nothing change. I can't use clean url from mod_rewrite. I thought i made a mistake in .htaccess file because i just copy the setting from codeigniter user guide.

Then after a few hours reading documentation, i figure out that in my apache linux (Ubuntu) AllowOverride was set to none, meanwhile in my XAMMP it was set to All, i change that, restart apache, and everything just fine. Now, Apache recognize my .htaccess.

If i'm right, in my apache linux machine, the configuration was set so that .htaccess file can't override apache configuration.

Am i right???

3 comments:

Anonymous said...

http://www.alldelphi.com

Everything you want to know about VCL,Snippet of all CodeGear and Delphi Related

Anonymous said...

Please help me how to change the URL below is the original link
http://localhost/project/yoozbox-ci/niche_page/display/5

I want to change that into
http://localhost/project/yoozbox-ci/title of the niche/id here

How to do that using htaccess.

Sunny said...

Thank u very much ...