How to turn off Url Rewrite in .htaccess

Discussion in 'Apache' started by masalaindiadennis, Jun 23, 2007.

  1. #1
    Hi Guys,

    How to turn off URL-Rewrite

    here is the code of .htaccess file

    #RewriteEngine on
    ##point to installation directory
    ##if it is the root dir,enter /
    #RewriteBase /

    #RewriteRule ^show\.php/(.*)$ show2.php?img=$1 [L]
    #RewriteRule ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2 [L]
    #RewriteRule ^view\.php/(.*)$ view2.php?img=$1 [L]
    #RewriteRule ^image\.php/([a-z]{1})(.*)$ images2.php?$1=$2 [L]
    #RewriteRule ^gallery/([0-9]+)-([^/]*)/(.*)$ gallery.php?gal=$1&img=$3 [L]
    #RewriteRule ^view/([0-9]+)-([^/]*)/(.*)$ gallery_body.php?gal=$1&img=$3 [L]


    Thanx in Advance :)
     
    masalaindiadennis, Jun 23, 2007 IP
  2. mihaidamianov

    mihaidamianov Well-Known Member

    Messages:
    1,434
    Likes Received:
    111
    Best Answers:
    0
    Trophy Points:
    190
    #2
    RewriteEngine Off

    I think..
     
    mihaidamianov, Jun 23, 2007 IP
  3. masalaindiadennis

    masalaindiadennis Banned

    Messages:
    155
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Should i go for it ?
     
    masalaindiadennis, Jun 23, 2007 IP
  4. mihaidamianov

    mihaidamianov Well-Known Member

    Messages:
    1,434
    Likes Received:
    111
    Best Answers:
    0
    Trophy Points:
    190
    #4
    You can try it, see if it works, if not go back to RewriteEngine On.
    No major harm should occur.
     
    mihaidamianov, Jun 23, 2007 IP
  5. masalaindiadennis

    masalaindiadennis Banned

    Messages:
    155
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ok thanx :)
     
    masalaindiadennis, Jun 23, 2007 IP