Need help for url

Discussion in 'PHP' started by cenedy, Aug 27, 2010.

  1. #1
    cenedy, Aug 27, 2010 IP
  2. Wolf Security

    Wolf Security Peon

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    .htaccess and the actual URL on the stage, please :)
     
    Wolf Security, Aug 27, 2010 IP
  3. cenedy

    cenedy Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    .htaccess file is totaly empty and sorry i don't want to provide actual url

    Thanks
     
    cenedy, Aug 28, 2010 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    Looks like theirs possibly a problem with your rewrite rule within your .htaccess (ungreedy or something?) paste the contents of your .htaccess within code tags within your next reply.
     
    danx10, Aug 28, 2010 IP
  5. HungryMindz

    HungryMindz Member

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #5
    Hi!

    I Don't Think Your .htaccess File Is Empty :S
    Because You Are Using Something Wrong With RewriteRule In .htaccess

    You Can Use This Command To Set 404 Manually:
    Create config.php And Include In Every page.
    Where You Can Use This Command For Any Unwanted URL's.

    $chkURL = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];

    if ($chkURL == "http://www.example.com/1230.php/1231.php")
    {
    header("HTTP/1.0 404 Not Found");
    }
     
    HungryMindz, Aug 28, 2010 IP
  6. cenedy

    cenedy Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #6
    I try with this code but not work
     
    cenedy, Aug 28, 2010 IP
  7. cenedy

    cenedy Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #7
    my .htaccess file is totaly empty. Please provide me some code
     
    cenedy, Aug 28, 2010 IP