|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
A high performance database engine using optimized data access for all development environments including Delphi, Visual Studio .NET, Visual Basic, Visual FoxPro. and more. Learn More |
|
#1
|
|||
|
|||
|
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? Thanks |
|
#2
|
|||
|
|||
|
>I have heard from people this is possible.
Yes, using mod_rewrite. |
|
#3
|
|||
|
|||
|
Do you have any details on how?
|
|
#4
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > cgi-bin/script?/Computers/Internet to ==> /script/Computers/Internet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|