Results 1 to 10 of 10

Thread: 500 internal error with mod rewrite

  1. #1
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    500 internal error with mod rewrite

    I am having issue with one of my mod rewrite url. I keep getting an internal error message when I click on the link.

    The link is setup for visitors to confirm their email address. Once they click on it, their email address is added to the database. Everything seems fine running internally, except for the proper page that suppose to load up when the link is clicked. My other mod rewrite rules works fine, only this one.

    If the mod rewrite is turned off, the link goes to the home page and not the page that tells the visitors their email address has been added.

    My htaccess files looks like this.
    # Follow symbolic links in this directory
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^(profile|news-all|contact|all-archive|rss-feed).html$ index.php?cmd=$1
    RewriteRule ^index.html$ index.php
    RewriteRule ^print_(.*)\.html$ index.php?cmd=print&blog=$1
    RewriteRule ^friend_(.*)\.html$ index.php?cmd=tell-a-friend&blog=$1
    RewriteRule ^blog/(.*)/(.*)/archive.html$ index.php?cmd=archive&month=$1&year=$2
    RewriteRule ^news/(.*)/(.*).html$ index.php?cmd=news&post=$1
    RewriteRule ^blog/(.*)/(.*).html$ index.php?cmd=blog&post=$1
    RewriteRule ^verify-email/(.*)/index.html index.php?cmd=verify_email&code=$1 [nc]
    RewriteRule ^unsubscribe-notification/(.*)/index.html index.php?cmd=unsubscribe_notification&code=$1 [nc]
    The one in question is the line that includes 'verify-email...'

  2. #2
    Join Date
    Jun 2007
    Location
    Brittany France
    Beans
    561
    Distro
    Lubuntu 11.10 Oneiric Ocelot

    Re: 500 internal error with mod rewrite

    are your using apache2 or cherokee ?

    There is no spoon
    Best ubuntu pocket guide
    Can't believe, i've just spent 50 years writing COBOL code - oh, and i still love it

  3. #3
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 500 internal error with mod rewrite

    apache2.

  4. #4
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 500 internal error with mod rewrite

    I still can't get this resolve. Anyone have an idea. I can supply link to site if needed. Thanks.

  5. #5
    Join Date
    Nov 2009
    Location
    Los Angeles
    Beans
    393
    Distro
    Ubuntu

    Re: 500 internal error with mod rewrite

    Does your error log contain any details?

  6. #6
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 500 internal error with mod rewrite

    No, I don't any errors related to this issue. I've looked in the apache2 error log and syslog. All shows nothing.

  7. #7
    Join Date
    Dec 2009
    Location
    Mangalore, India
    Beans
    100
    Distro
    Ubuntu Development Release

    Re: 500 internal error with mod rewrite

    It is obvious that the error message is due to the .htaccess codes. I would suggest that you to comment the .htaccess codes one by one to debug the exact line of .htaccess code which is causing the issue.

  8. #8
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 500 internal error with mod rewrite

    Ok. I have enabled error log in my script and I do see an error now.

    Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.,

  9. #9
    Join Date
    Aug 2006
    Location
    Yellowknife
    Beans
    878

    Re: 500 internal error with mod rewrite

    Perhaps your mod_rewrite rule and your DirectoryIndex directive in your apache config are clashing? For some reason your redirection is being redirected (probably back to the first redirection, which in turn goes on to the next one and back again, etc) ... basically you might be going from index.html to index.php back to index.html and so on.

    Just a guess. It's been a while since I touched apache.
    Not the cupcakes!
    Trust me.

  10. #10
    Join Date
    Apr 2009
    Location
    Saitama, Japan
    Beans
    132
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 500 internal error with mod rewrite

    Here is more message with loglevel set to 'debug'
    [Fri Oct 28 16:09:52 2011] [debug] core.c(3069): [client 192.168.1.1] redirected from r->uri = /index.php=index.php=index.php=index.php=index.php= index.php=index.php=index.php=index.php=verify-email/2-1e5b7cfd03b2d46da75ab916ae16b/index.php,

Bookmarks

Posting Permissions

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