.htaccess is empty file, but my url still got rewrite, how come?

Discussion in 'Programming' started by feelexit, Jun 7, 2007.

  1. #1
    this is my .htaccess file

    RewriteEngine On
    RewriteBase /newtheme
    #RewriteRule ^member/([a-zA-Z0-9]+)$ /member/list.php?uid=$1&type=index [L]

    only 3 lines and last one is comment out,

    my url is : http://localhost/newtheme/category.php?name=movie
    if i use http://localhost/newtheme/category/movie, page still showed up ,the only problem is querystring seems like got lost.

    .htaccess file is empty and theres no rule to rewrite url, home come rewrited url still works?

    besides, .htaccess file, what other files controled url rewrite?

    update: . I did more test on my localserver.
    I make test.php file.
    I check http://localhost/test.php --> working fine
    I check http://localhost/test ---> working fine
    I check htp://localhost/test/somethinghere --> still works
    I check http://localhost/testlskdfsdlfsdfsdf --> I got 404 page not found error mesage.

    when I test it, I delete .htaccess from my docuemnt root. I am pretty sure theres rewrite rule exist somewhere, i dont really know where, but not in .htaccess. I just need to find it out. I check apache's http.conf file, no luck.

    any other files I should check ????????????????
     
    feelexit, Jun 7, 2007 IP
  2. DeViAnThans3

    DeViAnThans3 Peon

    Messages:
    785
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe there is a .htaccess file in the folder above? :)
     
    DeViAnThans3, Jun 9, 2007 IP