#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2006
    Posts
    199
    Rep Power
    29

    Bizarre Issue with mod_rewrite or something else


    I'm having a bizarre issue with Mod_Rewrite.

    When I type mydomain.com/signup into my browser it's going to signup.php not index.php?signup as expected.

    It seems my server is first looking for a file that has file name of signup. I noticed this earlier too because I have a file called signup.css, and it was loading that when I went to /signup; but didn't think much of it at the time.

    Code:
    RewriteEngine on
    RewriteBase /
    
    RewriteRule ^signup$ index.php?signup
    RewriteRule ^signup/(?:$|\?(?:.+)) index.php?signup$1 [QSA]
    RewriteRule ^activation/(?:$|\?(?:.+)) activate.php?$1 [QSA]
    
    AddType x-mapp-php6 .php
    Any ideas on what's happening here?
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,128
    Rep Power
    4304
    That sounds like mod_negotiation. You can turn it off by adding this to your .htaccess file:
    Code:
    Options -MultiViews
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo