02-12-2010, 12:13 AM
(This post was last modified: 02-12-2010, 12:18 AM by blackstrider.)
Hi, my greetings to all the member.
I'm just starting to learn how to use a LAMP using Ubuntu Server 9.10 running on a virtual machine. I was able to make it run with common functionality to mimic the actual web host but I was stuck into its strange behavior of handling path which prevents me from making full advantage of its mod_rewrite module.
The scenario:
I wanted to make a search engine friendly urls for my site links so that the path "http://mysite.com/products.php?category=pc&id=20" will be shorten to "http://mysite.com/products/pc/20".
The problem:
Whenever I go to the path "http://mysite.com/products" the server always assumes it as "http://mysite.com/products.php" or "http://mysite.com/products.html" or whatever file in the directory with the name "products" is available and displays its contents to the browser. It's still happening even if the mod_rewrite is turned off. This prevents me from using the path "http://mysite.com/products" as one the rewrite rules because it's always interpreted as a reference to the file.
My question
Where can I find the configuration to disable this behavior? Since I've been looking for every line in inside the apache2.conf file for something to change but I can't seem to find anything that has something to do with the problem.
I hope anybody here who is more experienced can help me with this matter.
I'm just starting to learn how to use a LAMP using Ubuntu Server 9.10 running on a virtual machine. I was able to make it run with common functionality to mimic the actual web host but I was stuck into its strange behavior of handling path which prevents me from making full advantage of its mod_rewrite module.
The scenario:
I wanted to make a search engine friendly urls for my site links so that the path "http://mysite.com/products.php?category=pc&id=20" will be shorten to "http://mysite.com/products/pc/20".
The problem:
Whenever I go to the path "http://mysite.com/products" the server always assumes it as "http://mysite.com/products.php" or "http://mysite.com/products.html" or whatever file in the directory with the name "products" is available and displays its contents to the browser. It's still happening even if the mod_rewrite is turned off. This prevents me from using the path "http://mysite.com/products" as one the rewrite rules because it's always interpreted as a reference to the file.
My question
Where can I find the configuration to disable this behavior? Since I've been looking for every line in inside the apache2.conf file for something to change but I can't seem to find anything that has something to do with the problem.
I hope anybody here who is more experienced can help me with this matter.