How to turn mode rewrite off?

Discussion in 'Apache' started by ---Lily---, Nov 11, 2008.

  1. #1
    hi, i just installed this link exchange script but i'm on godaddy and the .htaccess file is causing problems.. i read somewhere it could help if i turned the mode rewrite off but i have no idea how?
    can you help me?

    what happens with this .htaccess is that; it creates the urls on the directory homepage as; http://www.mydomain.com/dir/categoryname/index.html

    what i need is; http://www.mydomain.com/dir/categoryname/ or http://www.mydomain.com/dir/categoryname/index.php

    thank you very much...

    the .htaccess is like this:

    # BEGIN SkaLinks
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^(.*)detailed/listing([0-9]+)\.html $1detailed/listing.php?link_id=$2
    RewriteRule search_(.*)\.html search.php?$1
    RewriteRule ^(.*)page([0-9]*)\.html $1index.php?page=$2
    RewriteRule ^(.*)index.html $1index.php
    </IfModule>
    # END SkaLinks


    p.s. i just realized the "RewriteEngine on" text in the code. should i just make it "RewriteEngine off" to turn it off? i tried it but nothing changed, i read again somewhere it could take some time to take effect, does it?
     
    ---Lily---, Nov 11, 2008 IP
  2. vishwaa

    vishwaa Well-Known Member

    Messages:
    271
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    138
    #2
    Mod rewrite just works fine and yours is not a mod rewrite problem.

    1) Login to admin area
    2) Enter Settings >> URL display
    3) Modify the values to your requirement (delete the "index.html" in Category index page URL input)
    4) You're done

    [​IMG]
    [​IMG]
     
    vishwaa, Nov 12, 2008 IP
    ---Lily--- likes this.
  3. ---Lily---

    ---Lily--- Peon

    Messages:
    148
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    cool! :D it works.. thank you very much..
     
    ---Lily---, Nov 12, 2008 IP