new_rewrite not working

Discussion in 'Setting-up protection' started by beenet, Jan 22, 2006.

  1. beenet

    beenet aMember Pro Customer

    Joined:
    Dec 24, 2004
    Messages:
    11
    Hi -

    I'm testing amember before I buy. Unfortanly, I am unable to test the "new_rewrite" method. Doesn't seem to work on my server.

    I'm getting the following message:
    "RewriteRule doesn't work in .htaccess files on this server".

    My website is being hosted on a "shared" server. Therefore, I do not have access to the httpd.conf file. But, I was told by my hosting provider that "mod_rewrite" is enabled.

    After reading other posts (with similar problems), I tried linking to this test page:

    http://mysite.com/amember/data/tests/mod_rewrite/1.php

    But, this link returns a "Not Found" page

    In stead of linking to a http page, it is linking to this...

    /usr/home/mysite/www/htdocs/amember/data/tests/mod_rewrite/2.php

    Any idea why "new_rewrite" is not working on my server??

    Thank you.

    - DC
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    How did you detect this?
  3. beenet

    beenet aMember Pro Customer

    Joined:
    Dec 24, 2004
    Messages:
    11
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Is file amember/data/tests/mod_rewrite/2.php uploaded?
    If not, why? It presents in distrubution ZIP.
  5. beenet

    beenet aMember Pro Customer

    Joined:
    Dec 24, 2004
    Messages:
    11
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Nice. Now contact webhosting support and ask them why error happens. .htaccess file located in the same folder clearly instructs to dislpay contents of 2.php when you access 1.php

  7. beenet

    beenet aMember Pro Customer

    Joined:
    Dec 24, 2004
    Messages:
    11
    My hosting provider added the "RewriteBase directive" to the .htaccess file (see belove) and it worked.

    The .htaccess file now reads:
    ---------------------------------------------------------------------
    <Limit GET POST>
    allow from all
    </Limit>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /dmc/amember/data/tests/mod_rewrite
    RewriteRule 1\.php 2.php
    ---------------------------------------------------------------------

    Do I have to use the "RewriteBase" for RewriteRules to work on my server? Does this mean I have to edit your script at all?

    Thanks.
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please contact support with link to this topic - we will make neccessary modifications to aMember code in your installation.

Share This Page