Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Sim
    Sim is offline
    New Coder
    Join Date
    Feb 2009
    Posts
    81
    Thanks
    1
    Thanked 1 Time in 1 Post

    ignore rewrite rule for files?

    So my htaccess file looks like this:

    Code:
    RewriteEngine On
    
    
    RewriteRule ^(.*)/(.*)/(.*)/$ /gamefiles/index.php?game=$1&where=$2&action=$3 [NC,L]
    RewriteRule ^(.*)/(.*)/$ /gamefiles/index.php?game=$1&where=$2 [NC,L]
    RewriteRule ^(.*)/$ /gamefiles/index.php?game=$1 [NC,L]
    The problem I am having is I am using a full path to my file in an ajax call:

    http://www.mehdomain.com/gamefiles/p...nd_request.php

    I keep getting URL not found even though the file really is there.


    So what I am getting at is, is there a way to ignore rewrite rule's for .php file extension?
    Online RPG Creator - Create Your Own Online RPG with no programming knoweldge

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    You have a trailing / in the rule. Add a ? after it and try again.

  • #3
    Sim
    Sim is offline
    New Coder
    Join Date
    Feb 2009
    Posts
    81
    Thanks
    1
    Thanked 1 Time in 1 Post
    I want my url's to end with / such as mydomain.com/this/is/url/

    i'll give it a try right now though and see what happens
    Online RPG Creator - Create Your Own Online RPG with no programming knoweldge

  • #4
    Sim
    Sim is offline
    New Coder
    Join Date
    Feb 2009
    Posts
    81
    Thanks
    1
    Thanked 1 Time in 1 Post
    Now i am getting this erroR:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@hehrpg.rpgbattler.info and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


    I tried:

    RewriteRule ^(.*)/$? /gamefiles/index.php?game=$1 [NC,L]

    and

    RewriteRule ^(.*)/?$ /gamefiles/index.php?game=$1 [NC,L]
    Online RPG Creator - Create Your Own Online RPG with no programming knoweldge


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •