#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    12
    Rep Power
    0
    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. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >I have heard from people this is possible.
    Yes, using mod_rewrite.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    12
    Rep Power
    0
    Do you have any details on how?
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    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.

IMN logo majestic logo threadwatch logo seochat tools logo