Results 1 to 5 of 5

Thread: Mod_Rewrite

  1. #1
    Join Date
    May 2005
    Location
    Hawaii
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Mod_Rewrite

    I want to use mod_rewrite. when you go to http://domain.com/conact_us/contact/webmaster/ it is same as http://domain.com/conact_us.php?contact=webmaster. here is the code that I am using(got the code from http://www.webmaster-toolkit.com/mod...enerator.shtml):
    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule conact_us/(.*)/(.*)/$ /conact_us.php?$1=$2
    but I get this error:
    Code:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    
    Please contact the server administrator, and inform them of the time the error occurred and anything you might have done that may have caused the error.
    
    More information about this error may be available in the server error log.
    
    Apache Server at localhost
    What is wrong, I am running Apache 1.3.29, mod_rewrite is enabled, PHP 4.3.4.

  2. #2
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I was just wondering, what is the use of a mod rewrite?

  3. #3
    Join Date
    May 2005
    Location
    Hawaii
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    you can read about it here.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by yourhtmlsource.com
    It exposes the underlying technology of the website... This can give potential hackers clues as to what type of data they should send along with the query string to perform a ‘front-door’ attack on the site. Information like this shouldn’t be given away if you can help it.
    And if you ever have to rely on such "security by obscurity," your site is already so insecure that it's not worth the bother.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Aug 2005
    Posts
    174
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    why dont you try:

    Code:
    RewriteEngine On
    RewriteRule contact_us/contact/(.*)/ contact_us.php?contact=$1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •