Using mod_rewrite with php_include

Discussion in 'Setting-up protection' started by h.koenig, Feb 23, 2004.

  1. h.koenig

    h.koenig Guest

    Hi Alex,

    i am using "mod_rewrite with php_include" and getting the following error:

    Fatal error: Cannot redeclare rewrite_run_main() (previously declared in /srv/www.shopstat.com/htdocs/register/plugins/protect/php_include/rewrite.php:53) in /srv/www.shopstat.com/htdocs/register/plugins/protect/php_include/rewrite.php on line 52

    Any hint ?

    Thanks.

    Hartmut
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Harmut,
    once you protected parent folder with .htaccess, you don't need to protect child folders. It is valid for all protection methods, but specially important for mod_rewrite.
  3. h.koenig

    h.koenig Guest

    Now Alex had helped me setup this issue (he just copied the original file and it worked :) i am now having another problem.

    All works excellent with my perl-application and the "redirect" per "mod_rewrite with php_include" except one issue:

    If i want to have a form in my perl-application and this form is using the "POST"-Method, after the "redirect" i don't have any post-parameter left.

    What can i do here ? Alex please help me out.

    Thanks.

    Hartmut
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Harmut,
    is there any ways to avoid this POST or convert it to GET ?
  5. h.koenig

    h.koenig Guest

    Hi Alex,

    unfortunately (for professional issues) i cannot avoid using POST, because I want to update a password over this form.

    Any other thoughts ?!

    Regards

    Hartmut
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Send me FTP info and URL where it happens - will try to figure out why it happens.

Share This Page