June 14th, 2000, 09:27 PM
I have been told that apache has some features that can help me do this using either the config or .htaccess file.
I have used the .htaccess file to take a script and instead of having it named "main.cgi" it is now named just "main". So now that the .cgi extension is gone I want to get rid of the ? in the url for dynamically generated pages. That way it will be search engine friendly.
I have heard from people this is possible. Could someone please tell me how to do this?
June 15th, 2000, 08:04 AM
>I have heard from people this is possible.
Yes, using mod_rewrite.
June 15th, 2000, 02:18 PM
Do you have any details on how?
June 15th, 2000, 06:45 PM
mod_rewrite is pretty difficult to use based on its flexibility and power. Please go to: http://www.apache.org/docs/misc/rewriteguide.html and look at "Filesystem Reorganisation" section, this matches best to your situation.
I haven't tried "Filesystem Reorganisation" myself, so I can't give you example. In that example, the cgi scipt has .cgi extension, you can simply remove the .cgi extension using ScriptAlias or whatever since you already figured out this part.